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 boolean
hasPreviousSelection
protected boolean
previousCreated
protected S
previousSelection
-
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 void
add(S o)
protected abstract S
createPreviousSelection()
protected abstract S
createUpcomingSelection()
boolean
hasPrevious()
S
next()
int
nextIndex()
protected S
noPreviousSelection()
S
previous()
int
previousIndex()
void
remove()
void
set(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:
createUpcomingSelection
in classUpcomingSelectionIterator<S>
-
createPreviousSelection
protected abstract S createPreviousSelection()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<S>
-
next
public S next()
- Specified by:
next
in interfaceIterator<S>
- Specified by:
next
in interfaceListIterator<S>
- Overrides:
next
in classUpcomingSelectionIterator<S>
-
previous
public 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
public void set(S o)
- Specified by:
set
in interfaceListIterator<S>
-
add
public void add(S o)
- Specified by:
add
in interfaceListIterator<S>
-
-