org.apache.commons.collections.primitives
public interface FloatListIterator extends FloatIterator
float
values.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:35 $
See Also: FloatListIteratorListIterator
Method Summary | |
---|---|
void | add(float element)
Inserts the specified element into my underlying collection
(optional operation).
|
boolean | hasNext()
Returns true iff I have more elements
when traversed in the forward direction.
|
boolean | hasPrevious()
Returns true iff I have more elements
when traversed in the reverse direction.
|
float | next()
Returns the next element in me when traversed in the
forward direction.
|
int | nextIndex()
Returns the index of the element that would be returned
by a subsequent call to FloatListIterator, or the number
of elements in my iteration if I have no next element.
|
float | previous()
Returns the next element in me when traversed in the
reverse direction.
|
int | previousIndex()
Returns the index of the element that would be returned
by a subsequent call to FloatListIterator, or
-1 if I have no previous element.
|
void | remove()
Removes from my underlying collection the last
element returned by FloatListIterator or FloatListIterator
(optional operation).
|
void | set(float element)
Replaces in my underlying collection the last
element returned by FloatListIterator or FloatListIterator
with the specified value (optional operation).
|
Parameters: element the value to be inserted
Throws: UnsupportedOperationException when this operation is not supported IllegalArgumentException if some aspect of the specified element prevents it from being added
true
iff I have more elements
when traversed in the forward direction.
(In other words, returns true
iff
a call to FloatListIterator will return an element
rather than throwing an exception.
Returns: true
iff I have more elements when
traversed in the forward direction
true
iff I have more elements
when traversed in the reverse direction.
(In other words, returns true
iff
a call to FloatListIterator will return an element
rather than throwing an exception.
Returns: true
iff I have more elements when
traversed in the reverse direction
Returns: the next element in me
Throws: NoSuchElementException if there is no next element
Returns: the index of the next element in me
Returns: the previous element in me
Throws: NoSuchElementException if there is no previous element
-1
if I have no previous element.
Returns: the index of the previous element in me
Throws: UnsupportedOperationException if this operation is not supported IllegalStateException if neither FloatListIterator nor FloatListIterator has yet been called, or FloatListIterator or FloatListIterator has already been called since the last call to FloatListIterator or FloatListIterator.
Parameters: element the value to replace the last returned element with
Throws: UnsupportedOperationException if this operation is not supported IllegalStateException if neither FloatListIterator nor FloatListIterator has yet been called, or FloatListIterator or FloatListIterator has already been called since the last call to FloatListIterator or FloatListIterator. IllegalArgumentException if some aspect of the specified element prevents it from being added