Schnittstelle IntBidirectionalIterator

Alle Superschnittstellen:
IntIterator, Iterator<Integer>, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>
Alle bekannten Unterschnittstellen:
IntListIterator

public interface IntBidirectionalIterator extends IntIterator, ObjectBidirectionalIterator<Integer>
A Type-Specific ObjectBidirectionalIterator to reduce (un)boxing
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    default int
    back(int amount)
    Reverses the Given amount of elements if possible.
    boolean
    Returns true if the Iterator has a Previous element
    default Integer
    Veraltet.
    Please use the corresponding type-specific function instead.
    int
    Returns the Previous element of the iterator.
    default int
    skip(int amount)
    Skips the Given amount of elements if possible.

    Von Schnittstelle geerbte Methoden speiger.src.collections.ints.collections.IntIterator

    forEachRemaining, forEachRemaining, forEachRemaining, next, nextInt

    Von Schnittstelle geerbte Methoden java.util.Iterator

    hasNext, remove

    Von Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectIterator

    forEachRemaining
  • Methodendetails

    • hasPrevious

      boolean hasPrevious()
      Returns true if the Iterator has a Previous element
      Angegeben von:
      hasPrevious in Schnittstelle ObjectBidirectionalIterator<Integer>
      Gibt zurück:
      true if the Iterator has a Previous element
    • previousInt

      int previousInt()
      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

      @Deprecated default Integer 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:
      previous in Schnittstelle ObjectBidirectionalIterator<Integer>
      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:
      skip in Schnittstelle IntIterator
      Angegeben von:
      skip in Schnittstelle ObjectIterator<Integer>
      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:
      back in Schnittstelle ObjectBidirectionalIterator<Integer>
      Parameter:
      amount - the amount of elements that should be reversed
      Gibt zurück:
      the amount of elements that were reversed