Package it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableListIterator
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Short>,it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Short>,it.unimi.dsi.fastutil.objects.ObjectIterator<Short>,ShortBidirectionalIterator,it.unimi.dsi.fastutil.shorts.ShortIterator,ShortListIterator,Iterator<Short>,ListIterator<Short>,PrimitiveIterator<Short,it.unimi.dsi.fastutil.shorts.ShortConsumer>
- Enclosing class:
ShortIterators
public static class ShortIterators.UnmodifiableListIterator
extends Object
implements ShortListIterator
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(it.unimi.dsi.fastutil.shorts.ShortConsumer action) voidforEachRemaining(Consumer<? super Short> action) Deprecated.booleanhasNext()booleanintshortintshortReturns 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.shorts.ShortBidirectionalIterator
back, skipMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
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<Short>- Specified by:
hasPreviousin interfaceListIterator<Short>
-
nextShort
public short nextShort()- Specified by:
nextShortin interfaceit.unimi.dsi.fastutil.shorts.ShortIterator
-
previousShort
public short previousShort()Description copied from interface:ShortBidirectionalIteratorReturns the previous element as a primitive type.- Specified by:
previousShortin interfaceShortBidirectionalIterator- Returns:
- the previous element in the iteration.
- See Also:
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<Short>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<Short>
-
forEachRemaining
public void forEachRemaining(it.unimi.dsi.fastutil.shorts.ShortConsumer action) - Specified by:
forEachRemainingin interfacePrimitiveIterator<Short,it.unimi.dsi.fastutil.shorts.ShortConsumer> - Specified by:
forEachRemainingin interfaceit.unimi.dsi.fastutil.shorts.ShortIterator
-
forEachRemaining
Deprecated.- Specified by:
forEachRemainingin interfaceIterator<Short>- Specified by:
forEachRemainingin interfaceit.unimi.dsi.fastutil.shorts.ShortIterator
-