it.unimi.dsi.fastutil.objects
Interface ObjectIterator<K>

All Superinterfaces:
Iterator<K>
All Known Subinterfaces:
BooleanBidirectionalIterator, BooleanListIterator, ByteBidirectionalIterator, ByteListIterator, CharBidirectionalIterator, CharListIterator, DoubleBidirectionalIterator, DoubleListIterator, FloatBidirectionalIterator, FloatListIterator, IntBidirectionalIterator, IntListIterator, LongBidirectionalIterator, LongListIterator, ObjectBidirectionalIterator<K>, ObjectListIterator<K>, ShortBidirectionalIterator, ShortListIterator
All Known Implementing Classes:
AbstractBooleanBidirectionalIterator, AbstractBooleanListIterator, AbstractByteBidirectionalIterator, AbstractByteListIterator, AbstractCharBidirectionalIterator, AbstractCharListIterator, AbstractDoubleBidirectionalIterator, AbstractDoubleListIterator, AbstractFloatBidirectionalIterator, AbstractFloatListIterator, AbstractIntBidirectionalIterator, AbstractIntListIterator, AbstractLongBidirectionalIterator, AbstractLongListIterator, AbstractObjectBidirectionalIterator, AbstractObjectIterator, AbstractObjectListIterator, AbstractShortBidirectionalIterator, AbstractShortListIterator, BooleanIterators.EmptyIterator, BooleanIterators.UnmodifiableBidirectionalIterator, BooleanIterators.UnmodifiableListIterator, ByteIterators.EmptyIterator, ByteIterators.UnmodifiableBidirectionalIterator, ByteIterators.UnmodifiableListIterator, CharIterators.EmptyIterator, CharIterators.UnmodifiableBidirectionalIterator, CharIterators.UnmodifiableListIterator, DoubleIterators.EmptyIterator, DoubleIterators.UnmodifiableBidirectionalIterator, DoubleIterators.UnmodifiableListIterator, FloatIterators.EmptyIterator, FloatIterators.UnmodifiableBidirectionalIterator, FloatIterators.UnmodifiableListIterator, IntIterators.EmptyIterator, IntIterators.UnmodifiableBidirectionalIterator, IntIterators.UnmodifiableListIterator, LongIterators.EmptyIterator, LongIterators.UnmodifiableBidirectionalIterator, LongIterators.UnmodifiableListIterator, ObjectIterators.EmptyIterator, ObjectIterators.UnmodifiableBidirectionalIterator, ObjectIterators.UnmodifiableIterator, ObjectIterators.UnmodifiableListIterator, ShortIterators.EmptyIterator, ShortIterators.UnmodifiableBidirectionalIterator, ShortIterators.UnmodifiableListIterator

public interface ObjectIterator<K>
extends Iterator<K>

A type-specific Iterator; provides an additional method to avoid (un)boxing, and the possibility to skip elements.

See Also:
Iterator

Method Summary
 int skip(int n)
          Skips the given number of elements.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

skip

int skip(int n)
Skips the given number of elements.

The effect of this call is exactly the same as that of calling Iterator.next() for n times (possibly stopping if Iterator.hasNext() becomes false).

Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()