Package it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableListIterator
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Integer>,IntBidirectionalIterator,it.unimi.dsi.fastutil.ints.IntIterator,IntListIterator,it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Integer>,it.unimi.dsi.fastutil.objects.ObjectIterator<Integer>,Iterator<Integer>,ListIterator<Integer>,PrimitiveIterator<Integer,,IntConsumer> PrimitiveIterator.OfInt
- Enclosing class:
IntIterators
An unmodifiable wrapper class for list 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 Integer> action) Deprecated.voidforEachRemaining(IntConsumer action) booleanhasNext()booleanintintnextInt()intintReturns 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.ints.IntBidirectionalIterator
back, skipMethods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining
-
Field Details
-
i
-
-
Constructor Details
-
UnmodifiableListIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceit.unimi.dsi.fastutil.BidirectionalIterator<Integer>- Specified by:
hasPreviousin interfaceListIterator<Integer>
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceit.unimi.dsi.fastutil.ints.IntIterator- Specified by:
nextIntin interfacePrimitiveIterator.OfInt
-
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:
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<Integer>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<Integer>
-
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Integer,IntConsumer> - Specified by:
forEachRemainingin interfacePrimitiveIterator.OfInt
-
forEachRemaining
Deprecated.- Specified by:
forEachRemainingin interfaceit.unimi.dsi.fastutil.ints.IntIterator- Specified by:
forEachRemainingin interfaceIterator<Integer>- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfInt
-