public class KnuthPossPosIter extends PositionIterator
PositionIterator that is backed by an iterator
over a list of KnuthElements.| Constructor and Description |
|---|
KnuthPossPosIter(List elementList)
Auxiliary constructor
|
KnuthPossPosIter(List elementList,
int startPos,
int endPos)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkNext() |
ListElement |
getKE()
Peek at next, returning as ListElement.
|
protected LayoutManager |
getLM(Object nextObj) |
protected Position |
getPos(Object nextObj)
Default implementation assumes that the passed
nextObj is itself a Position, and just returns it. |
Position |
next() |
endIter, getNextChildLM, hasNext, peekNext, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic KnuthPossPosIter(List elementList, int startPos, int endPos)
elementList - List of Knuth elementsstartPos - starting position, inclusiveendPos - ending position, exclusivepublic KnuthPossPosIter(List elementList)
elementList - List of Knuth elementsprotected boolean checkNext()
checkNext in class PositionIteratorpublic Position next()
next in interface Iterator<Position>next in class PositionIteratorpublic ListElement getKE()
protected LayoutManager getLM(Object nextObj)
getLM in class PositionIteratornextObj - next object from which to obtain positionprotected Position getPos(Object nextObj)
nextObj is itself a Position, and just returns it.
Subclasses for which this is not the case, must provide a
suitable override this method.getPos in class PositionIteratornextObj - next object from which to obtain positionCopyright © 2023 Apache Software Foundation. All rights reserved.