public static class CollectionManager.BasicBshIterator extends Object implements BshIterator
Constructor and Description |
---|
BasicBshIterator(Object iterateOverMe)
Construct a basic BasicBshIterator
|
Modifier and Type | Method and Description |
---|---|
protected Enumeration |
createEnumeration(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 |
Object |
next()
Fetch the next object in the iteration
|
public BasicBshIterator(Object iterateOverMe)
The
- object over which we are iteratingIllegalArgumentException
- If the argument is not a
supported (i.e. iterable) type.NullPointerException
- If the argument is nullprotected Enumeration createEnumeration(Object iterateOverMe)
iterateOverMe
- Object of type Enumeration, Vector, String,
StringBuffer or an arrayIllegalArgumentException
- If the argument is not a
supported (i.e. iterable) type.NullPointerException
- If the argument is nullpublic Object next()
next
in interface BshIterator
public boolean hasNext()
next()
methodhasNext
in interface BshIterator
? 2000-2005 pat@pat.net :-)