T
- the input typeConsumer
instead. This interface will be removed in the next release. If you
are targeting Android, see how to enable
desugaring.@Deprecated
@FunctionalInterface
public interface Consumer<T>
extends java.util.function.Consumer<T>
Consumer
interface, previously implemented here for cross
compatibility with Android before desugaring support was introduced.Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Deprecated.
Execute this operation on the supplied argument.
|