Class DualValueDeque
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<DualValue>,Collection<DualValue>,Deque<DualValue>,List<DualValue>,Queue<DualValue>,SequencedCollection<DualValue>
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDualValueDeque(RecursiveComparisonConfiguration recursiveComparisonConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends DualValue> collection) voidvoidprivate booleanshouldAddDualKey(DualValue dualKey) private booleanshouldNotEvaluate(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, reversed, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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
-