info.aduna.collections.iterators
Class SingletonIterator<E>
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.SingletonIteration<E,RuntimeException>
info.aduna.collections.iterators.SingletonIterator<E>
- All Implemented Interfaces:
- CloseableIterator<E>, CloseableIteration<E,RuntimeException>, Iteration<E,RuntimeException>, Closeable, Iterator<E>
public class SingletonIterator<E>
- extends SingletonIteration<E,RuntimeException>
- implements CloseableIterator<E>
An iterator that contains exactly one element.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonIterator
public SingletonIterator(E value)
- Creates a new EmptyIterator.
Copyright © 1997-2008 Aduna. All Rights Reserved.