public class UnitIterator extends IteratorAdapter
Constructor and Description |
---|
UnitIterator(java.lang.Object item)
Construct an iterator over a single object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
remove
public UnitIterator(java.lang.Object item)
item
- The single object.public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class IteratorAdapter
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class IteratorAdapter