- Type Parameters:
T- the input type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Consumer<T>
A functional interface (ala Java's
Consumerinterface, implemented here for cross compatibility with Android.
(T t)Execute this operation on the supplied argument. It is expected to have side effects.
t- the input argument