Schnittstelle ShortConsumer

Alle Superschnittstellen:
Consumer<Short>
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface ShortConsumer extends Consumer<Short>
Type-Specific Consumer interface that reduces (un)boxing and allows to merge other consumer types into this interface
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    accept(short t)
    Type-Specific function to reduce (un)boxing.
    default void
    Veraltet.
    Please use the corresponding type-specific function instead.
    andThen(Consumer<? super Short> after)
    Veraltet.
    Please use the corresponding type-specific function instead.
    Type Specific sequencing method to reduce boxing/unboxing.
  • Methodendetails

    • accept

      void accept(short t)
      Type-Specific function to reduce (un)boxing. Performs this operation on the given argument.
      Parameter:
      t - the input argument
    • andThen

      default ShortConsumer andThen(ShortConsumer after)
      Type Specific sequencing method to reduce boxing/unboxing.
      Parameter:
      after - a operation that should be performed afterwards
      Gibt zurück:
      a sequenced consumer that does 2 operations
      Löst aus:
      NullPointerException - if after is null
    • accept

      @Deprecated default void accept(Short t)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      accept in Schnittstelle Consumer<Short>
    • andThen

      @Deprecated default ShortConsumer andThen(Consumer<? super Short> after)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      andThen in Schnittstelle Consumer<Short>