|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents iterators over lists of short values.
ListIterator
Method Summary | |
void |
add(short v)
Adds a specified element to the list at this iterator's current position. |
boolean |
hasPrevious()
Indicates whether more short values can be returned by this iterator by calling previous(). |
int |
nextIndex()
Returns the index of the element that would be returned by a call to next(). |
short |
previous()
Returns the previous short value of this iterator. |
int |
previousIndex()
Returns the index of the element that would be returned by a call to previous(). |
void |
set(short v)
Sets the last element returned to a specified value. |
Methods inherited from interface bak.pcj.ShortIterator |
hasNext, next, remove |
Method Detail |
public void add(short v)
v
- the element to add.
UnsupportedOperationException
- if addition is not supported by this
iterator.public boolean hasPrevious()
previous()
public int nextIndex()
ShortIterator.next()
public short previous()
NoSuchElementException
- if no more elements are available from this
iterator in backwards direction.hasPrevious()
public int previousIndex()
previous()
public void set(short v)
v
- the new value of the element.
UnsupportedOperationException
- if replacement is not supported by this iterator.
IllegalStateException
- if no element has been returned by this iterator
yet.
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |