接口 LongIterator

所有超级接口:
Cloneable
所有已知子接口:
PeekableLongIterator

public interface LongIterator extends Cloneable
A simple iterator over long values. Using an IntIterator instead of Java's Iterator<Long> avoids the overhead of the Long class: on some tests, LongIterator is nearly twice as fast as Iterator<Long>.
  • 方法概要

    修饰符和类型
    方法
    说明
    Creates a copy of the iterator.
    boolean
     
    long
     
  • 方法详细资料

    • clone

      LongIterator clone()
      Creates a copy of the iterator.
      返回:
      a clone of the current iterator
    • hasNext

      boolean hasNext()
      返回:
      whether there is another value
    • next

      long next()
      返回:
      next long value