org.apache.commons.collections.primitives.decorators
Class UnmodifiableFloatIterator

java.lang.Object
  extended byorg.apache.commons.collections.primitives.decorators.ProxyFloatIterator
      extended byorg.apache.commons.collections.primitives.decorators.UnmodifiableFloatIterator
All Implemented Interfaces:
FloatIterator

public final class UnmodifiableFloatIterator
extends ProxyFloatIterator

Since:
Commons Primitives 1.0
Version:
$Revision: 1.1 $ $Date: 2003/10/29 20:07:54 $
Author:
Rodney Waldhoff

Field Summary
private  FloatIterator proxied
           
 
Constructor Summary
(package private) UnmodifiableFloatIterator(FloatIterator iterator)
           
 
Method Summary
protected  FloatIterator getIterator()
           
 boolean hasNext()
          Returns true iff I have more elements.
 float next()
          Returns the next element in me.
 void remove()
          Removes from my underlying collection the last element returned by me (optional operation).
static FloatIterator wrap(FloatIterator iterator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxied

private FloatIterator proxied
Constructor Detail

UnmodifiableFloatIterator

UnmodifiableFloatIterator(FloatIterator iterator)
Method Detail

remove

public void remove()
Description copied from interface: FloatIterator
Removes from my underlying collection the last element returned by me (optional operation).


getIterator

protected FloatIterator getIterator()
Specified by:
getIterator in class ProxyFloatIterator

wrap

public static final FloatIterator wrap(FloatIterator iterator)

hasNext

public boolean hasNext()
Description copied from interface: FloatIterator
Returns true iff I have more elements. (In other words, returns true iff a subsequent call to next will return an element rather than throwing an exception.)

Specified by:
hasNext in interface FloatIterator
Returns:
true iff I have more elements

next

public float next()
Description copied from interface: FloatIterator
Returns the next element in me.

Specified by:
next in interface FloatIterator
Returns:
the next element in me


Copyright (c) 2002-2003 - Apache Software Foundation