- 所有超级接口:
Cloneable
- 所有已知子接口:
PeekableIntIterator,PeekableIntRankIterator
- 所有已知实现类:
BatchIntIterator,BufferIntIteratorFlyweight,BufferReverseIntIteratorFlyweight,IntIteratorFlyweight,ReverseIntIteratorFlyweight
A simple iterator over integer values.
Using an IntIterator instead of Java's Iterator<Integer>
avoids the overhead of the Interger class: on some tests,
IntIterator is nearly twice as fast as Iterator<Integer>.
-
方法概要
-
方法详细资料
-
clone
IntIterator clone()Creates a copy of the iterator.- 返回:
- a clone of the current iterator
-
hasNext
boolean hasNext()- 返回:
- whether there is another value
-
next
int next()- 返回:
- next integer value
-