|
jaxen 1.1.3-redhat-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.util.SingleObjectIterator
public class SingleObjectIterator
Simple utility class that wraps an iterator around one object. This is a little more efficent than creating a one-object list.
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleObjectIterator(Object object)
object - the object to iterate over| Method Detail |
|---|
public boolean hasNext()
hasNext in interface IteratorIterator.hasNext()public Object next()
next in interface IteratorNoSuchElementException - if the element has already been seenIterator.next()public void remove()
remove in interface IteratorUnsupportedOperationException - always
|
jaxen 1.1.3-redhat-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||