net.cscott.jutil
public abstract class UnmodifiableIterator<E> extends Object implements Iterator<E>
Version: $Id: UnmodifiableIterator.java,v 1.4 2006-10-30 20:14:41 cananian Exp $
Method Summary | |
---|---|
abstract boolean | hasNext() Returns true if the iteration has more elements. |
abstract E | next() Returns the next element in the iteration. |
static <E> UnmodifiableIterator<E> | proxy(Iterator<E> it) Create an UnmodifiableIterator from the given (potentailly
modifiable) Iterator. |
void | remove() Always throws an UnsupportedOperationException. |
true
if the iteration has more elements.Returns: true
if the iterator has more elements.
Throws: java.util.NoSuchElementException iteration has no more elements.
Throws: UnsupportedOperationException always.