Top Fields Constructors Methods
org.assertj.core.api.recursive.comparison

pack-priv Class DualValueDeque

extends LinkedList<DualValue>
Class Inheritance
Annotations
@SuppressWarnings:serial
Static Imports
java.util.stream.Collectors.toList

Field Summary

Modifier and TypeField and Description
private RecursiveComparisonConfiguration

Constructor Summary

AccessConstructor and Description
public
DualValueDeque(RecursiveComparisonConfiguration recursiveComparisonConfiguration)

Method Summary

Modifier and TypeMethod and Description
public boolean
add(DualValue
element to be appended to this list
dualKey
)

Overrides java.util.LinkedList.add.

Implements java.util.List.add, java.util.Deque.add, java.util.Collection.add.

Appends the specified element to the end of this list.
public void
add(int
index at which the specified element is to be inserted
index
,
DualValue
element to be inserted
dualKey
)

Overrides java.util.LinkedList.add.

Implements java.util.List.add.

Inserts the specified element at the specified position in this list.
public boolean
addAll(int
index at which to insert the first element from the specified collection
index
,
Collection<? extends DualValue>
collection containing elements to be added to this list
collection
)

Overrides java.util.LinkedList.addAll.

Implements java.util.List.addAll.

Inserts all of the elements in the specified collection into this list, starting at the specified position.
public void
addFirst(DualValue
the element to add
dualKey
)

Overrides java.util.LinkedList.addFirst.

Overrides default java.util.List.addFirst.

Implements java.util.Deque.addFirst.

Inserts the specified element at the beginning of this list.
public void
addLast(DualValue
the element to add
dualKey
)

Overrides java.util.LinkedList.addLast.

Overrides default java.util.List.addLast.

Implements java.util.Deque.addLast.

Appends the specified element to the end of this list.
private boolean
private boolean

Returns:

true if we want to register the value for evaluation, false otherwise
shouldNotEvaluate
(DualValue
the value to check
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.

Inherited from java.util.LinkedList:
addAllclearclonecontainsdescendingIteratorelementgetgetFirstgetLastindexOflastIndexOflistIteratorofferofferFirstofferLastpeekpeekFirstpeekLastpollpollFirstpollLastpoppushremoveremoveremoveremoveFirstremoveFirstOccurrenceremoveLastremoveLastOccurrencereversedsetsizespliteratortoArraytoArray

Field Detail

recursiveComparisonConfigurationback to summary
private RecursiveComparisonConfiguration recursiveComparisonConfiguration

Constructor Detail

DualValueDequeback to summary
public DualValueDeque(RecursiveComparisonConfiguration recursiveComparisonConfiguration)

Method Detail

addback to summary
public boolean add(DualValue dualKey)

Overrides java.util.LinkedList.add.

Implements java.util.List.add, java.util.Deque.add, java.util.Collection.add.

Doc from java.util.LinkedList.add.

Appends the specified element to the end of this list.

This method is equivalent to addLast.

Parameters
dualKey:DualValue

element to be appended to this list

Returns:boolean

true (as specified by Collection#add)

Annotations
@Override
addback to summary
public void add(int index, DualValue dualKey)

Overrides java.util.LinkedList.add.

Implements java.util.List.add.

Doc from java.util.LinkedList.add.

Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Parameters
index:int

index at which the specified element is to be inserted

dualKey:DualValue

element to be inserted

Annotations
@Override
addAllback to summary
public boolean addAll(int index, Collection<? extends DualValue> collection)

Overrides java.util.LinkedList.addAll.

Implements java.util.List.addAll.

Doc from java.util.LinkedList.addAll.

Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.

Parameters
index:int

index at which to insert the first element from the specified collection

collection:Collection<? extends DualValue>

collection containing elements to be added to this list

Returns:boolean

true if this list changed as a result of the call

Annotations
@Override
addFirstback to summary
public void addFirst(DualValue dualKey)

Overrides java.util.LinkedList.addFirst.

Overrides default java.util.List.addFirst.

Implements java.util.Deque.addFirst.

Doc from java.util.LinkedList.addFirst.

Inserts the specified element at the beginning of this list.

Parameters
dualKey:DualValue

the element to add

Annotations
@Override
addLastback to summary
public void addLast(DualValue dualKey)

Overrides java.util.LinkedList.addLast.

Overrides default java.util.List.addLast.

Implements java.util.Deque.addLast.

Doc from java.util.LinkedList.addLast.

Appends the specified element to the end of this list.

This method is equivalent to add.

Parameters
dualKey:DualValue

the element to add

Annotations
@Override
shouldAddDualKeyback to summary
private boolean shouldAddDualKey(DualValue dualKey)
shouldNotEvaluateback to summary
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:DualValue

the value to check

Returns:boolean

true if we want to register the value for evaluation, false otherwise