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

public interface ObjectIterator<T> extends Iterator<T>
A Type-Specific Iterator that reduces (un)boxing
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    default <E> void
    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.

    Von Schnittstelle geerbte Methoden java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Methodendetails

    • forEachRemaining

      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.
      Typparameter:
      E - the generic type of the Object
      Parameter:
      input - the object that should be included
      action - 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