Class DualValueDeque
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<DualValue>
,Collection<DualValue>
,Deque<DualValue>
,List<DualValue>
,Queue<DualValue>
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionDualValueDeque
(RecursiveComparisonConfiguration recursiveComparisonConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends DualValue> collection) void
void
private boolean
shouldAddDualKey
(DualValue dualKey) private boolean
shouldNotEvaluate
(DualValue dualValue) Decides whether the value needs to evaluated, note that we need to evaluate all values if we have compared types registered as a value could have fields of type to compare.Methods inherited from class java.util.LinkedList
addAll, 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, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSequentialList
iterator
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Field Details
-
recursiveComparisonConfiguration
-
-
Constructor Details
-
DualValueDeque
-
-
Method Details
-
add
-
add
-
addAll
-
addFirst
-
addLast
-
shouldNotEvaluate
Decides whether the value needs to evaluated, note that we need to evaluate all values if we have compared types registered as a value could have fields of type to compare.For example if we want to compare Employee in a Company, we need to evaluate company as it holds a list of Employee.
- Parameters:
dualValue
- the value to check- Returns:
- true if we want to register the value for evaluation, false otherwise
-
shouldAddDualKey
-