org.jtiger.framework
Interface PositionableIterator


Deprecated. Use Positionable instead.

@Deprecated
public interface PositionableIterator

An iterator that has the concept of a position during iteration. The position can be conceptualised as a point between two elements in the sequence that is being iterated. An iterator that is traversing from the start will be in position zero (0). An iterator is capable of being in a position beyond the last element of the sequence. That is to say, the highest possible value of the position of the iterator is equal to the length of the sequence (not the index of the last element). A sequence can be conceptualised as:

 0   1   2   3   4   5   6   7   8    position in sequence
 |___|___|___|___|___|___|___|___|
 |   |   |   |   |   |   |   |   |
 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |    sequence element index
 |___|___|___|___|___|___|___|___|
 

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218
Author:
Tony Morris

Method Summary
 int getPosition()
          Deprecated. Returns the position of this iterator.
 

Method Detail

getPosition

int getPosition()
Deprecated. 
Returns the position of this iterator. The position is conceptually between elements in a sequence, unless it is at the start or end, in which case, this method returns zero or the length of the sequence respectively.

Returns:
The position of this iterator in a sequence.