PCJ API
Version 1.2

bak.pcj.list
Interface FloatListIterator

All Superinterfaces:
FloatIterator
All Known Implementing Classes:
ListIteratorToFloatListIteratorAdapter

public interface FloatListIterator
extends FloatIterator

This class represents iterators over lists of float values.

Since:
1.0
See Also:
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

add

public void add(float v)
Adds a specified element to the list at this iterator's current position.

Parameters:
v - the element to add.
Throws:
UnsupportedOperationException - if addition is not supported by this iterator.

hasPrevious

public boolean hasPrevious()
Indicates whether more float values can be returned by this iterator by calling previous().

Returns:
true if more float values can be returned by this iterator in backwards direction; returns false otherwise.
See Also:
previous()

nextIndex

public int nextIndex()
Returns the index of the element that would be returned by a call to next().

Returns:
the index of the element that would be returned by a call to next().
See Also:
FloatIterator.next()

previous

public float previous()
Returns the previous float value of this iterator.

Returns:
the previous float value of this iterator.
Throws:
NoSuchElementException - if no more elements are available from this iterator in backwards direction.
See Also:
hasPrevious()

previousIndex

public int previousIndex()
Returns the index of the element that would be returned by a call to previous().

Returns:
the index of the element that would be returned by a call to previous(); if no more elements are available in backwards direction, -1 is returned.
See Also:
previous()

set

public void set(float v)
Sets the last element returned to a specified value.

Parameters:
v - the new value of the element.
Throws:
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

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo