public class ShufflingValueSelector extends AbstractCachingValueSelector implements EntityIndependentValueSelector
cachedValueList, cacheType, childValueSelector
logger, solverPhaseLifecycleSupport, workingRandom
Constructor and Description |
---|
ShufflingValueSelector(EntityIndependentValueSelector childValueSelector,
SelectionCacheType cacheType) |
Modifier and Type | Method and Description |
---|---|
boolean |
isNeverEnding()
Is true if
Selector.isContinuous() is true
or if this selector is in random order (for most cases). |
Iterator<Object> |
iterator() |
Iterator<Object> |
iterator(Object entity)
Similar to
Iterable.iterator() , but requires an entity. |
String |
toString() |
constructCache, disposeCache, getCacheType, getChildValueSelector, getSize, getSize, getVariableDescriptor, isContinuous
phaseEnded, phaseStarted, solvingEnded, solvingStarted, stepEnded, stepStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSize, getVariableDescriptor
getSize
getCacheType, isContinuous
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
public ShufflingValueSelector(EntityIndependentValueSelector childValueSelector, SelectionCacheType cacheType)
public boolean isNeverEnding()
Selector
Selector.isContinuous()
is true
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).isNeverEnding
in interface Selector
Iterator.hasNext()
of the Iterator
created by Iterable.iterator()
never returns false.public Iterator<Object> iterator(Object entity)
ValueSelector
Iterable.iterator()
, but requires an entity.iterator
in interface ValueSelector
entity
- never nullCopyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.