|
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 char values.
ListIterator| Method Summary | |
void |
add(char v)
Adds a specified element to the list at this iterator's current position. |
boolean |
hasPrevious()
Indicates whether more char 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(). |
char |
previous()
Returns the previous char value of this iterator. |
int |
previousIndex()
Returns the index of the element that would be returned by a call to previous(). |
void |
set(char v)
Sets the last element returned to a specified value. |
| Methods inherited from interface bak.pcj.CharIterator |
hasNext, next, remove |
| Method Detail |
public void add(char v)
v - the element to add.
UnsupportedOperationException - if addition is not supported by this
iterator.public boolean hasPrevious()
previous()public int nextIndex()
CharIterator.next()public char previous()
NoSuchElementException - if no more elements are available from this
iterator in backwards direction.hasPrevious()public int previousIndex()
previous()public void set(char 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 | |||||||||