| gnu.lists.PositionContainer
All known Subclasses: gnu.lists.SubSequence, gnu.lists.SeqPosition,
PositionContainer | public interface PositionContainer (Code) | | An object that contains some number of positions in a Sequence.
Each position is a pair of an int and an Object. These have meaning
only as interpreted by the Sequence.
This interface is purely for efficiency - rather than allocating
a fresh SeqPosition object for each pair, we can store more than
one pair in a container.
|
countPositions | public int countPositions()(Code) | | Get the number of positions pairs stored in this PositionContainer.
|
getPositionInt | public int getPositionInt(int positionNumber)(Code) | | Get the integer part of a specified position pair.
|
getPositionPtr | public Object getPositionPtr(int positionNumber)(Code) | | Get the Object part of a specified position pair.
|
setPosition | public void setPosition(int positionNumber, int ipos, Object xpos)(Code) | | |
|
|