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