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, childEntitySelector
logger, 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, 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
public CachingEntitySelector(EntitySelector childEntitySelector, SelectionCacheType cacheType, boolean randomSelection)
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.