java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Command>
com.betterdiff.core.protocol.Protocol
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<Command>
,java.util.Collection<Command>
,java.util.List<Command>
,java.util.RandomAccess
- Direct Known Subclasses:
PartialProtocol
public class Protocol extends java.util.ArrayList<Command>
Ordered list of commands after all phases were proceeded.
Class implements visitor pattern to easily access every command
in it.
- Author:
- troomar
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Protocol()
-
Method Summary
Modifier and Type Method Description void
accept(ProtocolVisitor protocolVisitor)
Visit every command in the protocol.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
Protocol
public Protocol()
-
-
Method Details
-
accept
Visit every command in the protocol. It's up to the visitor what it will do. Behave yourself!- Parameters:
protocolVisitor
-
-