com.jaxfront.core.xpath
Class ResetableIterator
java.lang.Object
com.jaxfront.core.xpath.ResetableIterator
- All Implemented Interfaces:
- ResetIterator, java.util.Iterator
- Direct Known Subclasses:
- TypeIterator2
public class ResetableIterator
- extends java.lang.Object
- implements ResetIterator
Method Summary |
void |
addChild(java.lang.Object aType)
|
void |
ensureCapacity(int minCapacity)
Increases the capacity of this ArrayList instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument. |
java.lang.Object |
getCurrent()
|
boolean |
hasNext()
|
static void |
main(java.lang.String[] args)
|
java.lang.Object |
next()
|
void |
remove()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResetableIterator
public ResetableIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
- See Also:
Iterator.hasNext()
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
- See Also:
Iterator.next()
getCurrent
public java.lang.Object getCurrent()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
- See Also:
Iterator.remove()
reset
public void reset()
- Specified by:
reset
in interface ResetIterator
main
public static void main(java.lang.String[] args)
addChild
public void addChild(java.lang.Object aType)
ensureCapacity
public void ensureCapacity(int minCapacity)
- Increases the capacity of this ArrayList instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument.
- Parameters:
minCapacity
- the desired minimum capacity.