Class CachedListRandomIterator<S>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.CachedListRandomIterator<S>
- Type Parameters:
S
- Selection type, for example aMove
class, an entity class or a value class.
- All Implemented Interfaces:
Iterator<S>
This
Iterator
does not shuffle and is never ending.-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
cachedList
-
workingRandom
-
empty
protected final boolean empty
-
-
Constructor Details
-
CachedListRandomIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-