Functional Intefaces Flashcards Preview

Java > Functional Intefaces > Flashcards

Flashcards in Functional Intefaces Deck (6)
Loading flashcards...
1

What is an Functional Interface?

It is an inteface that has only one abstract method.

2

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.

3

What operation does the Predicate interface represent?

Represents a predicate (boolean-valued function) of one argument.

4

What operation does the Supplier interface represent?

Represents an operation that accepts no argument and returns a result. Nothing in object outs.

5

What operation does the Function interface represent?

Represents a function that accepts one argument and produces a result.

6

What operation does the UnaryOperator represent?

Represents a function that accepts and returns the same type.