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 Modifier and Type Field Description protected booleanhasPreviousSelectionprotected booleanpreviousCreatedprotected SpreviousSelection-
Fields inherited from class org.optaplanner.core.impl.heuristic.selector.common.iterator.UpcomingSelectionIterator
hasUpcomingSelection, upcomingCreated, upcomingSelection
-
-
Constructor Summary
Constructors Constructor Description UpcomingSelectionListIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(S o)protected abstract ScreatePreviousSelection()protected abstract ScreateUpcomingSelection()booleanhasPrevious()Snext()intnextIndex()protected SnoPreviousSelection()Sprevious()intpreviousIndex()voidremove()voidset(S o)-
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 Detail
-
previousSelection
protected S previousSelection
-
previousCreated
protected boolean previousCreated
-
hasPreviousSelection
protected boolean hasPreviousSelection
-
-
Method Detail
-
noPreviousSelection
protected S noPreviousSelection()
-
createUpcomingSelection
protected abstract S createUpcomingSelection()
- Specified by:
createUpcomingSelectionin classUpcomingSelectionIterator<S>
-
createPreviousSelection
protected abstract S createPreviousSelection()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<S>
-
next
public S next()
- Specified by:
nextin interfaceIterator<S>- Specified by:
nextin interfaceListIterator<S>- Overrides:
nextin classUpcomingSelectionIterator<S>
-
previous
public S previous()
- Specified by:
previousin interfaceListIterator<S>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<S>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<S>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<S>- Specified by:
removein interfaceListIterator<S>- Overrides:
removein classSelectionIterator<S>
-
set
public void set(S o)
- Specified by:
setin interfaceListIterator<S>
-
add
public void add(S o)
- Specified by:
addin interfaceListIterator<S>
-
-