public class CachingEntitySelector extends AbstractCachingEntitySelector
EntitySelector that caches the result of its child EntitySelector.
Keep this code in sync with CachingValueSelector and CachingMoveSelector.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
randomSelection |
cachedEntityList, cacheType, childEntitySelectorlogger, phaseLifecycleSupport, workingRandom| Constructor and Description |
|---|
CachingEntitySelector(EntitySelector childEntitySelector,
SelectionCacheType cacheType,
boolean randomSelection) |
| Modifier and Type | Method and Description |
|---|---|
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() |
constructCache, 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, spliteratorpublic CachingEntitySelector(EntitySelector childEntitySelector, SelectionCacheType cacheType, boolean randomSelection)
public 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.