S
- The type of elements in a moveT
- The type of moves in this dialgoue tracepublic class DialogueTrace<S,T extends java.util.Collection<S>>
extends java.util.LinkedList<T>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
For serialization.
|
Constructor and Description |
---|
DialogueTrace() |
Modifier and Type | Method and Description |
---|---|
DialogueTrace<S,T> |
addAndCopy(T newMove)
Returns a copy of this trace and adds the given move to this copy.
|
java.util.Collection<S> |
getElements()
Returns all elements mentioned in this dialogue trace.
|
int |
size() |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, spliterator, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
public java.util.Collection<S> getElements()
public DialogueTrace<S,T> addAndCopy(T newMove)
newMove
- Move to add to copy.public int size()
size
in interface java.util.Collection<T extends java.util.Collection<S>>
size
in interface java.util.Deque<T extends java.util.Collection<S>>
size
in interface java.util.List<T extends java.util.Collection<S>>
size
in class java.util.LinkedList<T extends java.util.Collection<S>>