Schnittstelle FloatConsumer

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

@FunctionalInterface public interface FloatConsumer extends Consumer<Float>
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(float t)
    Type-Specific function to reduce (un)boxing.
    default void
    Veraltet.
    Please use the corresponding type-specific function instead.
    andThen(Consumer<? super Float> after)
    Veraltet.
    Please use the corresponding type-specific function instead.
    Type Specific sequencing method to reduce boxing/unboxing.
  • Methodendetails

    • accept

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

      default FloatConsumer andThen(FloatConsumer 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(Float 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<Float>
    • andThen

      @Deprecated default FloatConsumer andThen(Consumer<? super Float> 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<Float>