Class UpcomingSelectionListIterator<S>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.iterator.SelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator<S>
org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionListIterator<S>
- All Implemented Interfaces:
Iterator<S>
,ListIterator<S>
- Direct Known Subclasses:
FilteringEntitySelector.JustInTimeFilteringEntityListIterator
public abstract class UpcomingSelectionListIterator<S>
extends UpcomingSelectionIterator<S>
implements ListIterator<S>
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection
-
Constructor Summary
-
Method Summary
Methods inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasNext, noUpcomingSelection, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
hasNext
-
Field Details
-
previousSelection
-
previousCreated
protected boolean previousCreated -
hasPreviousSelection
protected boolean hasPreviousSelection
-
-
Constructor Details
-
UpcomingSelectionListIterator
public UpcomingSelectionListIterator()
-
-
Method Details
-
noPreviousSelection
-
createUpcomingSelection
- Specified by:
createUpcomingSelection
in classUpcomingSelectionIterator<S>
-
createPreviousSelection
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<S>
-
next
- Specified by:
next
in interfaceIterator<S>
- Specified by:
next
in interfaceListIterator<S>
- Overrides:
next
in classUpcomingSelectionIterator<S>
-
previous
- Specified by:
previous
in interfaceListIterator<S>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<S>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<S>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<S>
- Specified by:
remove
in interfaceListIterator<S>
- Overrides:
remove
in classSelectionIterator<S>
-
set
- Specified by:
set
in interfaceListIterator<S>
-
add
- Specified by:
add
in interfaceListIterator<S>
-