程序包 bsh

类 CollectionManager.BasicBshIterator

java.lang.Object
bsh.CollectionManager.BasicBshIterator
所有已实现的接口:
BshIterator
封闭类:
CollectionManager

public static class CollectionManager.BasicBshIterator extends Object implements BshIterator
An implementation that works with JDK 1.1
  • 构造器详细资料

    • BasicBshIterator

      public BasicBshIterator(Object iterateOverMe)
      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

      protected Enumeration createEnumeration(Object iterateOverMe)
      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

      public Object 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 the next() method
      指定者:
      hasNext 在接口中 BshIterator
      返回:
      The next object