net.sf.webmancer.util.immutable
Class ImmutableIterator<T>

java.lang.Object
  extended by net.sf.webmancer.util.immutable.ImmutableIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
java.util.Iterator<T>

public final class ImmutableIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Author:
Michal Burda

Constructor Summary
ImmutableIterator(java.util.Iterator<? extends T> iterator)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableIterator

public ImmutableIterator(java.util.Iterator<? extends T> iterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>
See Also:
Iterator.hasNext()

next

public T next()
Specified by:
next in interface java.util.Iterator<T>
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>
See Also:
Iterator.remove()


Copyright © 2006-2007. All Rights Reserved.