Class MultipleDelegateList<T>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.move.generic.list.kopt.MultipleDelegateList<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
A list that delegates get and set operations to multiple delegates.
Add and removal operations are not supported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actOnAffectedElements
(Object[] originalEntities, TriConsumer<Object, Integer, Integer> action) void
boolean
boolean
addAll
(int i, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) boolean
get
(int i) int
getIndexOfValue
(ListVariableDescriptor<?> listVariableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, IndexVariableSupply indexVariableSupply, Object value) int
hashCode()
int
boolean
isEmpty()
iterator()
int
listIterator
(int i) void
moveElementsOfDelegates
(int[] newDelegateEndIndices) rebase
(ListVariableDescriptor<?> variableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, ScoreDirector<?> destinationScoreDirector) remove
(int i) boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) int
size()
subList
(int startInclusive, int endExclusive) Object[]
toArray()
<T1> T1[]
toArray
(T1[] t1s) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
MultipleDelegateList
-
-
Method Details
-
getIndexOfValue
public int getIndexOfValue(ListVariableDescriptor<?> listVariableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, IndexVariableSupply indexVariableSupply, Object value) -
rebase
public MultipleDelegateList<T> rebase(ListVariableDescriptor<?> variableDescriptor, SingletonInverseVariableSupply inverseVariableSupply, ScoreDirector<?> destinationScoreDirector) -
actOnAffectedElements
public void actOnAffectedElements(Object[] originalEntities, TriConsumer<Object, Integer, Integer> action) -
moveElementsOfDelegates
public void moveElementsOfDelegates(int[] newDelegateEndIndices) -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T1> T1[] toArray(T1[] t1s) -
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
get
-
set
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
add
-
remove
-
add
-
remove
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
toString
-
equals
-
hashCode
public int hashCode()
-