public class SortingEntitySelector extends AbstractCachingEntitySelector
| Modifier and Type | Field and Description |
|---|---|
protected SelectionSorter |
sorter |
cachedEntityList, cacheType, childEntitySelectorlogger, 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, isCountablephaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitphaseEnded, phaseStarted, stepEnded, stepStartedsolvingEnded, solvingStartedforEach, spliteratorprotected final SelectionSorter sorter
public SortingEntitySelector(EntitySelector childEntitySelector, SelectionCacheType cacheType, SelectionSorter sorter)
public void constructCache(DefaultSolverScope solverScope)
constructCache in interface SelectionCacheLifecycleListenerconstructCache in class AbstractCachingEntitySelectorpublic boolean isNeverEnding()
SelectorSelector.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–2021 JBoss by Red Hat. All rights reserved.