- 所有超级接口:
Cloneable
- 所有已知子接口:
PeekableLongIterator
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>.
-
方法概要
-
方法详细资料
-
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
-