Modul speiger.src.collections
Schnittstelle ShortBidirectionalIterator
- Alle Superschnittstellen:
Iterator<Short>,ObjectBidirectionalIterator<Short>,ObjectIterator<Short>,ShortIterator
- Alle bekannten Unterschnittstellen:
ShortListIterator
public interface ShortBidirectionalIterator
extends ShortIterator, ObjectBidirectionalIterator<Short>
A Type-Specific
ObjectBidirectionalIterator to reduce (un)boxing-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault intback(int amount) Reverses the Given amount of elements if possible.booleanReturns true if the Iterator has a Previous elementdefault Shortprevious()Veraltet.Please use the corresponding type-specific function instead.shortReturns the Previous element of the iterator.default intskip(int amount) Skips the Given amount of elements if possible.Von Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectIterator
forEachRemainingVon Schnittstelle geerbte Methoden speiger.src.collections.shorts.collections.ShortIterator
forEachRemaining, forEachRemaining, forEachRemaining, next, nextShort
-
Methodendetails
-
hasPrevious
boolean hasPrevious()Returns true if the Iterator has a Previous element- Angegeben von:
hasPreviousin SchnittstelleObjectBidirectionalIterator<Short>- Gibt zurück:
- true if the Iterator has a Previous element
-
previousShort
short previousShort()Returns the Previous element of the iterator.- Gibt zurück:
- the Previous element of the iterator.
- Löst aus:
NoSuchElementException- if the iteration has no more elements
-
previous
Veraltet.Please use the corresponding type-specific function instead.Returns the Previous element of the iterator.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
previousin SchnittstelleObjectBidirectionalIterator<Short>- Gibt zurück:
- the Previous element of the iterator.
-
skip
default int skip(int amount) Skips the Given amount of elements if possible. A Optimization function to skip elements faster if the implementation allows it.- Angegeben von:
skipin SchnittstelleObjectIterator<Short>- Angegeben von:
skipin SchnittstelleShortIterator- Parameter:
amount- the amount of elements that should be skipped- Gibt zurück:
- the amount of elements that were skipped
-
back
default int back(int amount) Reverses the Given amount of elements if possible. A Optimization function to reverse elements faster if the implementation allows it.- Angegeben von:
backin SchnittstelleObjectBidirectionalIterator<Short>- Parameter:
amount- the amount of elements that should be reversed- Gibt zurück:
- the amount of elements that were reversed
-