|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bsh.CollectionManager.BasicBshIterator
An implementation that works with JDK 1.1
Constructor Summary | |
CollectionManager.BasicBshIterator(java.lang.Object iterateOverMe)
Construct a basic BasicBshIterator |
Method Summary | |
protected java.util.Enumeration |
createEnumeration(java.lang.Object iterateOverMe)
Create an enumeration over the given object |
boolean |
hasNext()
Returns true if and only if there are more objects available via the next() method |
java.lang.Object |
next()
Fetch the next object in the iteration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionManager.BasicBshIterator(java.lang.Object iterateOverMe)
java.lang.IllegalArgumentException
- If the argument is not a
supported (i.e. iterable) type.
java.lang.NullPointerException
- If the argument is nullMethod Detail |
protected java.util.Enumeration createEnumeration(java.lang.Object iterateOverMe)
iterateOverMe
- Object of type Enumeration, Vector, String,
StringBuffer or an array
java.lang.IllegalArgumentException
- If the argument is not a
supported (i.e. iterable) type.
java.lang.NullPointerException
- If the argument is nullpublic java.lang.Object next()
next
in interface BshIterator
public boolean hasNext()
next()
method
hasNext
in interface BshIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |