com.jaxfront.core.xpath
Class SingleObjectIterator

java.lang.Object
  extended by com.jaxfront.core.xpath.SingleObjectIterator
All Implemented Interfaces:
ResetIterator, java.util.Iterator
Direct Known Subclasses:
SelfAxisIterator

public class SingleObjectIterator
extends java.lang.Object
implements ResetIterator

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(java.lang.Object object)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleObjectIterator

public SingleObjectIterator(java.lang.Object object)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

reset

public void reset()
Specified by:
reset in interface ResetIterator