Interface Consumer<T>
-
- Type Parameters:
T- the type of the input argument
- All Superinterfaces:
Operation,Serializable
- All Known Implementing Classes:
PrintConsumer
public interface Consumer<T> extends Operation
Represents an operation that accepts a single input argument and returns no result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T input)Performs an operation on the given argument.
-
-
-
Method Detail
-
accept
void accept(T input)
Performs an operation on the given argument.- Parameters:
input- the input
-
-