T - the type of elements maintained by this Collectionpublic interface ObjectIterator<T>
extends java.util.Iterator<T>
Iterator that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default <E> void |
forEachRemaining(E input,
ObjectObjectConsumer<E,T> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
default <E> void forEachRemaining(E input,
ObjectObjectConsumer<E,T> action)
E - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementjava.lang.NullPointerException - if the specified action is nulldefault int skip(int amount)
amount - the amount of elements that should be skipped