程序包 cool.scx.util

类 CycleIterator<T>

java.lang.Object
cool.scx.util.CycleIterator<T>
类型参数:
T -
所有已实现的接口:
Iterator<T>

public final class CycleIterator<T> extends Object implements Iterator<T>
无限循环的迭代器
  • 构造器详细资料

    • CycleIterator

      public CycleIterator()
  • 方法详细资料

    • hasNext

      public boolean hasNext()
      指定者:
      hasNext 在接口中 Iterator<T>
    • next

      public T next()
      调用 next 会进行无限循环的 next
      指定者:
      next 在接口中 Iterator<T>
      返回:
      a
    • add

      public void add(T item)