org.jaxen.util
public class SingleObjectIterator extends Object implements Iterator
Field Summary | |
---|---|
Object | object |
boolean | seen |
Constructor Summary | |
---|---|
SingleObjectIterator(Object object)
Creates a new single object iterator.
|
Method Summary | |
---|---|
boolean | hasNext()
Returns true if this iterator's element has not yet been seen; false if it has.
|
Object | next()
Returns the single element in this iterator if it has not yet
been seen.
|
void | remove()
This operation is not supported.
|
Parameters: object the object to iterate over
Returns: true if this iterator has another element; false if it doesn't
See Also: java.util.Iterator#hasNext()
Returns: the next element in this iterator
Throws: NoSuchElementException if the element has already been seen
See Also: java.util.Iterator#next()
Throws: UnsupportedOperationException always