Package it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableBidirectionalIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableBidirectionalIterator
- All Implemented Interfaces:
BidirectionalIterator<Integer>,IntBidirectionalIterator,IntIterator,ObjectBidirectionalIterator<Integer>,ObjectIterator<Integer>,Iterator<Integer>,PrimitiveIterator<Integer,,IntConsumer> PrimitiveIterator.OfInt
- Enclosing class:
IntIterators
public static class IntIterators.UnmodifiableBidirectionalIterator
extends Object
implements IntBidirectionalIterator
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super Integer> action) Deprecated.voidforEachRemaining(IntConsumer action) booleanhasNext()booleanReturns whether there is a previous element.intnextInt()Returns the next element as a primitive type.intReturns the previous element as a primitive type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
back, previous, skipMethods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining, next
-
Constructor Details
-
UnmodifiableBidirectionalIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()Description copied from interface:BidirectionalIteratorReturns whether there is a previous element.- Specified by:
hasPreviousin interfaceBidirectionalIterator<Integer>- Returns:
- whether there is a previous element.
- See Also:
-
nextInt
public int nextInt()Description copied from interface:IntIteratorReturns the next element as a primitive type.- Specified by:
nextIntin interfaceIntIterator- Specified by:
nextIntin interfacePrimitiveIterator.OfInt- Returns:
- the next element in the iteration.
- See Also:
-
previousInt
public int previousInt()Description copied from interface:IntBidirectionalIteratorReturns the previous element as a primitive type.- Specified by:
previousIntin interfaceIntBidirectionalIterator- Returns:
- the previous element in the iteration.
- See Also:
-
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Integer,IntConsumer> - Specified by:
forEachRemainingin interfacePrimitiveIterator.OfInt
-
forEachRemaining
Deprecated.Description copied from interface:IntIterator- Specified by:
forEachRemainingin interfaceIntIterator- Specified by:
forEachRemainingin interfaceIterator<Integer>- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfInt
-