bsh
public static class CollectionManager.BasicBshIterator extends Object implements BshIterator
Constructor Summary | |
---|---|
BasicBshIterator(Object iterateOverMe)
Construct a basic BasicBshIterator
|
Method Summary | |
---|---|
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
|
Parameters: The object over which we are iterating
Throws: java.lang.IllegalArgumentException If the argument is not a supported (i.e. iterable) type. java.lang.NullPointerException If the argument is null
Parameters: iterateOverMe Object of type Enumeration, Vector, String, StringBuffer or an array
Returns: an enumeration
Throws: java.lang.IllegalArgumentException If the argument is not a supported (i.e. iterable) type. java.lang.NullPointerException If the argument is null
next()
method
Returns: The next object
Returns: The next object