Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » primitives » [javadoc | source]
org.apache.commons.collections.primitives
public interface: FloatListIterator [javadoc | source]

All Implemented Interfaces:
    FloatIterator

All Known Implementing Classes:
    ProxyFloatListIterator, UnmodifiableFloatListIterator, ListIteratorFloatListIterator, RandomAccessFloatListIterator

A bi-directional iterator over float values.
Method from org.apache.commons.collections.primitives.FloatListIterator Summary:
add,   hasNext,   hasPrevious,   next,   nextIndex,   previous,   previousIndex,   remove,   set
Method from org.apache.commons.collections.primitives.FloatListIterator Detail:
 public  void add(float element)
    Inserts the specified element into my underlying collection (optional operation). The element is inserted immediately before the next element that would have been returned by #next , if any, and immediately after the next element that would have been returned by #previous , if any.

    The new element is inserted immediately before the implied cursor. A subsequent call to #previous will return the added element, a subsequent call to #next will be unaffected. This call increases by one the value that would be returned by a call to #nextIndex or #previousIndex .

 public boolean hasNext()
    Returns true iff I have more elements when traversed in the forward direction. (In other words, returns true iff a call to #next will return an element rather than throwing an exception.
 public boolean hasPrevious()
    Returns true iff I have more elements when traversed in the reverse direction. (In other words, returns true iff a call to #previous will return an element rather than throwing an exception.
 public float next()
    Returns the next element in me when traversed in the forward direction.
 public int nextIndex()
    Returns the index of the element that would be returned by a subsequent call to #next , or the number of elements in my iteration if I have no next element.
 public float previous()
    Returns the next element in me when traversed in the reverse direction.
 public int previousIndex()
    Returns the index of the element that would be returned by a subsequent call to #previous , or -1 if I have no previous element.
 public  void remove()
    Removes from my underlying collection the last element returned by #next or #previous (optional operation).
 public  void set(float element)
    Replaces in my underlying collection the last element returned by #next or #previous with the specified value (optional operation).