Package it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableBidirectionalIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableBidirectionalIterator
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Long>,LongBidirectionalIterator,it.unimi.dsi.fastutil.longs.LongIterator,it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long>,it.unimi.dsi.fastutil.objects.ObjectIterator<Long>,Iterator<Long>,PrimitiveIterator<Long,,LongConsumer> PrimitiveIterator.OfLong
- Enclosing class:
LongIterators
public static class LongIterators.UnmodifiableBidirectionalIterator
extends Object
implements LongBidirectionalIterator
An unmodifiable wrapper class for bidirectional iterators.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super Long> action) Deprecated.voidforEachRemaining(LongConsumer action) booleanhasNext()booleanlongnextLong()longReturns the previous element as a primitive type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongBidirectionalIterator
back, previous, skipMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, next
-
Field Details
-
i
-
-
Constructor Details
-
UnmodifiableBidirectionalIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceit.unimi.dsi.fastutil.BidirectionalIterator<Long>
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong
-
previousLong
public long previousLong()Description copied from interface:LongBidirectionalIteratorReturns the previous element as a primitive type.- Specified by:
previousLongin interfaceLongBidirectionalIterator- Returns:
- the previous element in the iteration.
- See Also:
-
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Long,LongConsumer> - Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-
forEachRemaining
Deprecated.- Specified by:
forEachRemainingin interfaceIterator<Long>- Specified by:
forEachRemainingin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-