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