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

java.lang.Object
  extended byorg.apache.commons.collections.primitives.decorators.ProxyDoubleIterator
      extended byorg.apache.commons.collections.primitives.decorators.UnmodifiableDoubleIterator
All Implemented Interfaces:
DoubleIterator

public final class UnmodifiableDoubleIterator
extends ProxyDoubleIterator

Since:
Commons Primitives 1.0
Version:
$Revision: 1.1 $ $Date: 2003/10/29 19:39:12 $
Author:
Rodney Waldhoff

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

Field Detail

proxied

private DoubleIterator proxied
Constructor Detail

UnmodifiableDoubleIterator

UnmodifiableDoubleIterator(DoubleIterator iterator)
Method Detail

remove

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


getIterator

protected DoubleIterator getIterator()
Specified by:
getIterator in class ProxyDoubleIterator

wrap

public static final DoubleIterator wrap(DoubleIterator iterator)

hasNext

public boolean hasNext()
Description copied from interface: DoubleIterator
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 DoubleIterator
Returns:
true iff I have more elements

next

public double next()
Description copied from interface: DoubleIterator
Returns the next element in me.

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


Copyright (c) 2002-2003 - Apache Software Foundation