T
- The type of the single element that this iterator will return.public class ItemIterator<T> extends Object implements Iterator<T>
ItemIterator
is an Iterator
that iterates a
single item.The GNU Lesser General Public License for details.
Constructor and Description |
---|
ItemIterator(T item) |
private T item
private boolean done
public ItemIterator(T item)
public void remove() throws UnsupportedOperationException
remove
in interface Iterator<T>
UnsupportedOperationException