Package it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableListIterator
- All Implemented Interfaces:
BidirectionalIterator<Integer>
,IntBidirectionalIterator
,IntIterator
,IntListIterator
,ObjectBidirectionalIterator<Integer>
,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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachRemaining
(Consumer<? super Integer> action) Deprecated.void
forEachRemaining
(IntConsumer action) boolean
hasNext()
boolean
Returns whether there is a previous element.int
int
nextInt()
Returns the next element as a primitive type.int
int
Returns the previous element as a primitive type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
back, skip
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining
-
Constructor Details
-
UnmodifiableListIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()Description copied from interface:BidirectionalIterator
Returns whether there is a previous element.- Specified by:
hasPrevious
in interfaceBidirectionalIterator<Integer>
- Specified by:
hasPrevious
in interfaceListIterator<Integer>
- Returns:
- whether there is a previous element.
- See Also:
-
nextInt
public int nextInt()Description copied from interface:IntIterator
Returns the next element as a primitive type.- Specified by:
nextInt
in interfaceIntIterator
- Specified by:
nextInt
in interfacePrimitiveIterator.OfInt
- Returns:
- the next element in the iteration.
- See Also:
-
previousInt
public int previousInt()Description copied from interface:IntBidirectionalIterator
Returns the previous element as a primitive type.- Specified by:
previousInt
in interfaceIntBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<Integer>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<Integer>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfacePrimitiveIterator<Integer,
IntConsumer> - Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfInt
-
forEachRemaining
Deprecated.Description copied from interface:IntIterator
- Specified by:
forEachRemaining
in interfaceIntIterator
- Specified by:
forEachRemaining
in interfaceIterator<Integer>
- Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfInt
-