gnu.lists

Class SubSequence

public class SubSequence extends AbstractSequence implements Sequence

A sequence consisting of a sub-range of the elements of a base sequence. The start and end positions are positions triples (on the same sequence).
Constructor Summary
SubSequence()
SubSequence(AbstractSequence base, int startPos, int endPos)
SubSequence(AbstractSequence base)
Method Summary
voidclear()
intcompare(int ipos1, int ipos2)
intcreatePos(int offset, boolean isAfter)
intcreateRelativePos(int pos, int offset, boolean isAfter)
voidfinalize()
Objectget(int index)
protected intgetIndexDifference(int ipos1, int ipos0)
intgetNextKind(int ipos)
ObjectgetPosNext(int ipos)
ObjectgetPosPrevious(int ipos)
protected booleanisAfterPos(int ipos)
protected intnextIndex(int ipos)
voidreleasePos(int ipos)
voidremovePosRange(int istart, int iend)
intsize()

Constructor Detail

SubSequence

public SubSequence()

SubSequence

public SubSequence(AbstractSequence base, int startPos, int endPos)

SubSequence

public SubSequence(AbstractSequence base)

Method Detail

clear

public void clear()

compare

public int compare(int ipos1, int ipos2)

createPos

public int createPos(int offset, boolean isAfter)

createRelativePos

public int createRelativePos(int pos, int offset, boolean isAfter)

finalize

public void finalize()

get

public Object get(int index)

getIndexDifference

protected int getIndexDifference(int ipos1, int ipos0)

getNextKind

public int getNextKind(int ipos)

getPosNext

public Object getPosNext(int ipos)

getPosPrevious

public Object getPosPrevious(int ipos)

isAfterPos

protected boolean isAfterPos(int ipos)

nextIndex

protected int nextIndex(int ipos)

releasePos

public void releasePos(int ipos)

removePosRange

public void removePosRange(int istart, int iend)

size

public int size()