public static class CollectionManager.BasicBshIterator extends java.lang.Object implements BshIterator
Constructor and Description |
---|
BasicBshIterator(java.lang.Object iterateOverMe)
Construct a basic BasicBshIterator
|
Modifier and Type | Method and Description |
---|---|
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
|
public BasicBshIterator(java.lang.Object iterateOverMe)
iterateOverMe
- The object over which we are iteratingjava.lang.IllegalArgumentException
- If the argument is not a
supported (i.e. iterable) type.java.lang.NullPointerException
- If the argument is nullprotected java.util.Enumeration createEnumeration(java.lang.Object iterateOverMe)
iterateOverMe
- Object of type Enumeration, Vector, String,
StringBuffer or an arrayjava.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()
methodhasNext
in interface BshIterator