Package it.unimi.dsi.fastutil.objects
Interface ObjectBidirectionalIterator<K>
- All Superinterfaces:
BidirectionalIterator<K>
,Iterator<K>
,ObjectIterator<K>
- All Known Subinterfaces:
BooleanBidirectionalIterator
,BooleanBigListIterator
,BooleanListIterator
,ByteBidirectionalIterator
,ByteBigListIterator
,ByteListIterator
,CharBidirectionalIterator
,CharBigListIterator
,CharListIterator
,DoubleBidirectionalIterator
,DoubleBigListIterator
,DoubleListIterator
,FloatBidirectionalIterator
,FloatBigListIterator
,FloatListIterator
,IntBidirectionalIterator
,IntBigListIterator
,IntListIterator
,LongBidirectionalIterator
,LongBigListIterator
,LongListIterator
,ObjectBigListIterator<K>
,ObjectListIterator<K>
,ShortBidirectionalIterator
,ShortBigListIterator
,ShortListIterator
- All Known Implementing Classes:
AbstractBooleanBidirectionalIterator
,AbstractBooleanBigListIterator
,AbstractBooleanListIterator
,AbstractByteBidirectionalIterator
,AbstractByteBigListIterator
,AbstractByteListIterator
,AbstractCharBidirectionalIterator
,AbstractCharBigListIterator
,AbstractCharListIterator
,AbstractDoubleBidirectionalIterator
,AbstractDoubleBigListIterator
,AbstractDoubleListIterator
,AbstractFloatBidirectionalIterator
,AbstractFloatBigListIterator
,AbstractFloatListIterator
,AbstractIntBidirectionalIterator
,AbstractIntBigListIterator
,AbstractIntListIterator
,AbstractLongBidirectionalIterator
,AbstractLongBigListIterator
,AbstractLongListIterator
,AbstractObjectBidirectionalIterator
,AbstractObjectBigListIterator
,AbstractObjectListIterator
,AbstractShortBidirectionalIterator
,AbstractShortBigListIterator
,AbstractShortListIterator
,BooleanBigListIterators.AbstractIndexBasedBigListIterator
,BooleanBigListIterators.BigListIteratorListIterator
,BooleanBigListIterators.EmptyBigListIterator
,BooleanBigListIterators.UnmodifiableBigListIterator
,BooleanIterators.AbstractIndexBasedListIterator
,BooleanIterators.EmptyIterator
,BooleanIterators.UnmodifiableBidirectionalIterator
,BooleanIterators.UnmodifiableListIterator
,ByteBigListIterators.AbstractIndexBasedBigListIterator
,ByteBigListIterators.BigListIteratorListIterator
,ByteBigListIterators.EmptyBigListIterator
,ByteBigListIterators.UnmodifiableBigListIterator
,ByteIterators.AbstractIndexBasedListIterator
,ByteIterators.EmptyIterator
,ByteIterators.UnmodifiableBidirectionalIterator
,ByteIterators.UnmodifiableListIterator
,CharBigListIterators.AbstractIndexBasedBigListIterator
,CharBigListIterators.BigListIteratorListIterator
,CharBigListIterators.EmptyBigListIterator
,CharBigListIterators.UnmodifiableBigListIterator
,CharIterators.AbstractIndexBasedListIterator
,CharIterators.EmptyIterator
,CharIterators.UnmodifiableBidirectionalIterator
,CharIterators.UnmodifiableListIterator
,DoubleBigListIterators.AbstractIndexBasedBigListIterator
,DoubleBigListIterators.BigListIteratorListIterator
,DoubleBigListIterators.EmptyBigListIterator
,DoubleBigListIterators.UnmodifiableBigListIterator
,DoubleIterators.AbstractIndexBasedListIterator
,DoubleIterators.EmptyIterator
,DoubleIterators.UnmodifiableBidirectionalIterator
,DoubleIterators.UnmodifiableListIterator
,FloatBigListIterators.AbstractIndexBasedBigListIterator
,FloatBigListIterators.BigListIteratorListIterator
,FloatBigListIterators.EmptyBigListIterator
,FloatBigListIterators.UnmodifiableBigListIterator
,FloatIterators.AbstractIndexBasedListIterator
,FloatIterators.EmptyIterator
,FloatIterators.UnmodifiableBidirectionalIterator
,FloatIterators.UnmodifiableListIterator
,IntBigListIterators.AbstractIndexBasedBigListIterator
,IntBigListIterators.BigListIteratorListIterator
,IntBigListIterators.EmptyBigListIterator
,IntBigListIterators.UnmodifiableBigListIterator
,IntIterators.AbstractIndexBasedListIterator
,IntIterators.EmptyIterator
,IntIterators.UnmodifiableBidirectionalIterator
,IntIterators.UnmodifiableListIterator
,LongBigListIterators.AbstractIndexBasedBigListIterator
,LongBigListIterators.BigListIteratorListIterator
,LongBigListIterators.EmptyBigListIterator
,LongBigListIterators.UnmodifiableBigListIterator
,LongIterators.AbstractIndexBasedListIterator
,LongIterators.EmptyIterator
,LongIterators.UnmodifiableBidirectionalIterator
,LongIterators.UnmodifiableListIterator
,ObjectBigListIterators.AbstractIndexBasedBigListIterator
,ObjectBigListIterators.BigListIteratorListIterator
,ObjectBigListIterators.EmptyBigListIterator
,ObjectBigListIterators.UnmodifiableBigListIterator
,ObjectIterators.AbstractIndexBasedListIterator
,ObjectIterators.EmptyIterator
,ObjectIterators.UnmodifiableBidirectionalIterator
,ObjectIterators.UnmodifiableListIterator
,ShortBigListIterators.AbstractIndexBasedBigListIterator
,ShortBigListIterators.BigListIteratorListIterator
,ShortBigListIterators.EmptyBigListIterator
,ShortBigListIterators.UnmodifiableBigListIterator
,ShortIterators.AbstractIndexBasedListIterator
,ShortIterators.EmptyIterator
,ShortIterators.UnmodifiableBidirectionalIterator
,ShortIterators.UnmodifiableListIterator
A type-specific bidirectional iterator; provides an additional method to avoid (un)boxing, and
the possibility to skip elements backwards.
- See Also:
-
Method Summary
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
back
default int back(int n) Moves back for the given number of elements.The effect of this call is exactly the same as that of calling
BidirectionalIterator.previous()
forn
times (possibly stopping ifBidirectionalIterator.hasPrevious()
becomes false).- Parameters:
n
- the number of elements to skip back.- Returns:
- the number of elements actually skipped.
- See Also:
-
skip
default 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()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Specified by:
skip
in interfaceObjectIterator<K>
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-