org.modeshape.common.collection
Class SingleIterator<T>
java.lang.Object
org.modeshape.common.collection.SingleIterator<T>
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
- Iterator<T>
@NotThreadSafe
public class SingleIterator<T>
- extends Object
- implements Iterator<T>
An Iterator
that is used to iterate over a single, fixed value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleIterator
public SingleIterator(T value)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface Iterator<T>
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.