程序包 bsh
类 CollectionManager.BasicBshIterator
java.lang.Object
bsh.CollectionManager.BasicBshIterator
- 所有已实现的接口:
BshIterator
- 封闭类:
- CollectionManager
An implementation that works with JDK 1.1
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected 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
-
构造器详细资料
-
BasicBshIterator
Construct a basic BasicBshIterator- 参数:
The
- object over which we are iterating- 抛出:
IllegalArgumentException
- If the argument is not a supported (i.e. iterable) type.NullPointerException
- If the argument is null
-
-
方法详细资料
-
createEnumeration
Create an enumeration over the given object- 参数:
iterateOverMe
- Object of type Enumeration, Vector, String, StringBuffer or an array- 返回:
- an enumeration
- 抛出:
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- 指定者:
next
在接口中BshIterator
- 返回:
- The next object
-
hasNext
public boolean hasNext()Returns true if and only if there are more objects available via thenext()
method- 指定者:
hasNext
在接口中BshIterator
- 返回:
- The next object
-