Class DualValueDeque
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<DualValue>
-
- org.assertj.core.api.recursive.comparison.DualValueDeque
-
-
Field Summary
Fields Modifier and Type Field Description private RecursiveComparisonConfigurationrecursiveComparisonConfiguration
-
Constructor Summary
Constructors Constructor Description DualValueDeque(RecursiveComparisonConfiguration recursiveComparisonConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, DualValue dualKey)booleanadd(DualValue dualKey)booleanaddAll(int index, java.util.Collection<? extends DualValue> collection)voidaddFirst(DualValue dualKey)voidaddLast(DualValue dualKey)private 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, set, size, spliterator, toArray, toArray
-
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
-
-
-
-
Field Detail
-
recursiveComparisonConfiguration
private final RecursiveComparisonConfiguration recursiveComparisonConfiguration
-
-
Constructor Detail
-
DualValueDeque
public DualValueDeque(RecursiveComparisonConfiguration recursiveComparisonConfiguration)
-
-
Method Detail
-
add
public boolean add(DualValue dualKey)
-
add
public void add(int index, DualValue dualKey)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends DualValue> collection)
-
addFirst
public void addFirst(DualValue dualKey)
-
addLast
public void addLast(DualValue dualKey)
-
shouldNotEvaluate
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.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
private boolean shouldAddDualKey(DualValue dualKey)
-
-