public class SortingEntitySelector extends AbstractCachingEntitySelector
Modifier and Type | Field and Description |
---|---|
protected SelectionSorter |
sorter |
cachedEntityList, cacheType, childEntitySelector
logger, phaseLifecycleSupport, workingRandom
Constructor and Description |
---|
SortingEntitySelector(EntitySelector childEntitySelector,
SelectionCacheType cacheType,
SelectionSorter sorter) |
Modifier and Type | Method and Description |
---|---|
void |
constructCache(DefaultSolverScope solverScope) |
boolean |
isNeverEnding()
Is true if
Selector.isCountable() is false
or if this selector is in random order (for most cases). |
Iterator<Object> |
iterator() |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
String |
toString() |
disposeCache, endingIterator, getCacheType, getChildEntitySelector, getEntityDescriptor, getSize, isCountable
phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
forEach, spliterator
protected final SelectionSorter sorter
public SortingEntitySelector(EntitySelector childEntitySelector, SelectionCacheType cacheType, SelectionSorter sorter)
public void constructCache(DefaultSolverScope solverScope)
constructCache
in interface SelectionCacheLifecycleListener
constructCache
in class AbstractCachingEntitySelector
public boolean isNeverEnding()
Selector
Selector.isCountable()
is false
or if this selector is in random order (for most cases).
Is never true when this selector is in shuffled order (which is less scalable but more exact).Iterator.hasNext()
of the Iterator
created by Iterable.iterator()
never returns false (except when it's empty).public ListIterator<Object> listIterator()
List.listIterator()
.List.listIterator()
public ListIterator<Object> listIterator(int index)
index
- lower than the size of this ListIterable
, see List.listIterator(int)
.List.listIterator(int)
.List.listIterator()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.