java.lang.Object
org.gjt.sp.jedit.bsh.CollectionManager.BasicBshIterator
- All Implemented Interfaces:
BshIterator
- Enclosing class:
- CollectionManager
An implementation that works with JDK 1.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Enumeration
createEnumeration
(Object iterateOverMe) Create an enumeration over the given objectboolean
hasNext()
Returns true if and only if there are more objects available via thenext()
methodnext()
Fetch the next object in the iteration
-
Constructor Details
-
BasicBshIterator
Construct a basic BasicBshIterator- Parameters:
iterateOverMe
- The object over which we are iterating- Throws:
IllegalArgumentException
- If the argument is not a supported (i.e. iterable) type.NullPointerException
- If the argument is null
-
-
Method Details
-
createEnumeration
Create an enumeration over the given object- Parameters:
iterateOverMe
- Object of type Enumeration, Vector, String, StringBuffer or an array- Returns:
- an enumeration
- Throws:
IllegalArgumentException
- If the argument is not a supported (i.e. iterable) type.NullPointerException
- If the argument is null
-
next
Fetch the next object in the iteration- Specified by:
next
in interfaceBshIterator
- Returns:
- The next object
-
hasNext
public boolean hasNext()Returns true if and only if there are more objects available via thenext()
method- Specified by:
hasNext
in interfaceBshIterator
- Returns:
- The next object
-