|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.validator.validators.CollectionFieldValidator.CloneableIterator
protected class CollectionFieldValidator.CloneableIterator
A cloneable iterator, when the iterator is cloned, its state is preserved,
eg. when this iterator is iterated to its 2nd element and the iterator is
cloned, the cloned iterator will start at its 3rd element as well when its
{next()
method is called.
Field Summary | |
---|---|
int |
index
|
Constructor Summary | |
---|---|
CollectionFieldValidator.CloneableIterator(List list)
Create a CollectionFieldValidator.CloneableIterator based on the list
supplied. |
Method Summary | |
---|---|
protected Object |
clone()
Clone this iterator, when the iterator is cloned, its state is preserved, eg. |
boolean |
hasNext()
See if there's a next element pending. |
Object |
next()
Go get the next element. |
void |
remove()
This operation is NOT SUPPORTED, will throw UnsupportedOperationException
if its invoked. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int index
Constructor Detail |
---|
public CollectionFieldValidator.CloneableIterator(List list)
CollectionFieldValidator.CloneableIterator
based on the list
supplied.
list
- Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
UnsupportedOperationException
if its invoked.
remove
in interface Iterator
protected Object clone() throws CloneNotSupportedException
next()
method is called.
clone
in class Object
CloneNotSupportedException
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |