org.optaplanner.core.impl.heuristic.selector.common.iterator
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
-
- All Implemented Interfaces:
- Iterator<S>
public class CachedListRandomIterator<S>
- extends SelectionIterator<S>
This Iterator
does not shuffle and is never ending.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cachedList
protected final List<S> cachedList
workingRandom
protected final Random workingRandom
notEmpty
protected final boolean notEmpty
CachedListRandomIterator
public CachedListRandomIterator(List<S> cachedList,
Random workingRandom)
hasNext
public boolean hasNext()
next
public S next()
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.