Functional Intefaces Flashcards
What is an Functional Interface?
It is an inteface that has only one abstract method.
What operation does the Consumer interface represent?
Represents an operation that accepts a single input argument and returns no result. Object in and nothing outs.
What operation does the Predicate interface represent?
Represents a predicate (boolean-valued function) of one argument.
What operation does the Supplier interface represent?
Represents an operation that accepts no argument and returns a result. Nothing in object outs.
What operation does the Function interface represent?
Represents a function that accepts one argument and produces a result.
What operation does the UnaryOperator represent?
Represents a function that accepts and returns the same type.