org.cliffc.high_scale_lib
Interface IntIterator


public interface IntIterator

An iterator optimized for primitive collections which avoids auto-boxing on next().


Method Summary
 boolean hasNext()
          Identical to Iterator.hasNext().
 int next()
          Identical to Iterator.next() but avoids auto-boxing.
 void remove()
          Identical to Iterator.remove().
 

Method Detail

next

int next()
Identical to Iterator.next() but avoids auto-boxing.

Returns:
The next int in the collection.

hasNext

boolean hasNext()
Identical to Iterator.hasNext().

Returns:
True if the iterator has more elements.

remove

void remove()
Identical to Iterator.remove().



Copyright © 2014. All rights reserved.