Modul speiger.src.collections
Schnittstelle ObjectIterator<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle Superschnittstellen:
Iterator<T>
- Alle bekannten Unterschnittstellen:
BooleanBidirectionalIterator,BooleanListIterator,ByteBidirectionalIterator,ByteListIterator,CharBidirectionalIterator,CharListIterator,DoubleBidirectionalIterator,DoubleListIterator,FloatBidirectionalIterator,FloatListIterator,IntBidirectionalIterator,IntListIterator,LongBidirectionalIterator,LongListIterator,ObjectBidirectionalIterator<T>,ObjectListIterator<T>,ObjectSplititerator<T>,ShortBidirectionalIterator,ShortListIterator
A Type-Specific
Iterator that reduces (un)boxing-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault <E> voidforEachRemaining(E input, ObjectObjectConsumer<E, T> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.default intskip(int amount) Skips the Given amount of elements if possible.Von Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methodendetails
-
forEachRemaining
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element- Löst aus:
NullPointerException- if the specified action is null
-
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.- Parameter:
amount- the amount of elements that should be skipped- Gibt zurück:
- the amount of elements that were skipped
-