public abstract class AbstractRandomSwapIterator<S,SubS> extends UpcomingSelectionIterator<S>
Modifier and Type | Field and Description |
---|---|
protected Iterator<SubS> |
leftSubSelectionIterator |
protected Iterable<SubS> |
leftSubSelector |
protected Iterator<SubS> |
rightSubSelectionIterator |
protected Iterable<SubS> |
rightSubSelector |
hasUpcomingSelection, upcomingCreated, upcomingSelection
Constructor and Description |
---|
AbstractRandomSwapIterator(Iterable<SubS> leftSubSelector,
Iterable<SubS> rightSubSelector) |
Modifier and Type | Method and Description |
---|---|
protected S |
createUpcomingSelection() |
protected abstract S |
newSwapSelection(SubS leftSubSelection,
SubS rightSubSelection) |
hasNext, next, noUpcomingSelection, toString
remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
protected S createUpcomingSelection()
createUpcomingSelection
in class UpcomingSelectionIterator<S>
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.