Interface Consumer1<A>

Type Parameters:
A - the type of parameter received by the function
All Superinterfaces:
Recoverable
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 Consumer1<A> extends Recoverable

This interface represents a function that receives a single parameter but it doesn't generate any result.

It's like a Function1<A, Unit>