|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ws4d.java.structures.ReadOnlyIterator
public class ReadOnlyIterator
An iterator over a data structure.
| Constructor Summary | |
|---|---|
ReadOnlyIterator(DataStructure dataStructure)
Constructor, wraps the iterator of the given data structure. |
|
ReadOnlyIterator(Iterator it)
Constructor, wraps iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
Operation is unsupported by ReadOnlyIterator, throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadOnlyIterator(DataStructure dataStructure)
dataStructure - the data structure to wrappublic ReadOnlyIterator(Iterator it)
it - iterator to wrap| Method Detail |
|---|
public boolean hasNext()
Iteratortrue if the iteration has more elements.
hasNext in interface Iteratortrue if the iterator has more elements.public java.lang.Object next()
Iterator
next in interface Iteratorpublic void remove()
remove in interface Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||