Interface Consumer<T>

Type Parameters:
T - the type of the input to the operation
All Superinterfaces:
Consumer<T>

@Deprecated(since="1.20.2") public interface Consumer<T> extends Consumer<T>
Deprecated.
Use Consumer instead
Represents an operation that accepts a single input argument and returns no result.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Deprecated.
    Performs this operation on the given argument.

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      void accept(T t)
      Deprecated.
      Performs this operation on the given argument.
      Specified by:
      accept in interface Consumer<T>
      Parameters:
      t - the input argument