|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.util.ReadOnlyIterator
ReadOnlyIterator wraps the behavior of the Iterator Class to prevent ability to modify data.
| Constructor Summary | |
ReadOnlyIterator(java.util.Iterator itr)
ReadOnlyIterator constructor. |
|
| Method Summary | |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the interation. |
void |
remove()
Remove operation is not supported by this iterator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadOnlyIterator(java.util.Iterator itr)
itr - the iterator to be wrapped.| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.IteratorNoSuchElementException - iteration has no more elements.public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - the remove
operation is not supported by this iterator.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||