org.crosswire.common.util
Class ItemIterator<T>
java.lang.Object
org.crosswire.common.util.ItemIterator<T>
- Type Parameters:
T
- The type of the single element that this iterator will return.
- All Implemented Interfaces:
- Iterator<T>
public class ItemIterator<T>
- extends Object
- implements Iterator<T>
An ItemIterator
is an Iterator
that iterates a
single item.
- Author:
- DM Smith
- See Also:
The GNU Lesser General Public License for details.
Field Summary |
private boolean |
done
|
private T |
item
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
item
private T item
done
private boolean done
ItemIterator
public ItemIterator(T item)
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()
throws UnsupportedOperationException
- Specified by:
remove
in interface Iterator<T>
- Throws:
UnsupportedOperationException