|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.iterator.SingleIterator
public class SingleIterator
This class provides an iterator over a single object. This is useful for Tree-like iterator (as used by CascadeIterator for example). (Composite-pattern)
| Constructor Summary | |
|---|---|
SingleIterator(java.lang.Object single)
Creates an enumeration of its argument. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Have we not yet returned the object. |
java.lang.Object |
next()
Return the object if we have not already done so. |
void |
remove()
Always throws an UnsupportedOperationException removal 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 SingleIterator(java.lang.Object single)
single - the object to "iterate" over| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||