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 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 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, toArrayMethods inherited from class AbstractSequentialList
iteratorMethods inherited from class AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface 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
-