Extra Topics
Extra Topics
Enum
• Parameterized types
interface
applicable (Optional)
Functional Interface
Abstract method
Lambda Expression
are needed
Interface
Syntax of Lambda Expression
Syntax Description
Takes no argument and executes the given statement(s)
( ) -> { statements }
in lambda expression’s body
Takes argument(s) and executes the given statements in
(Parameters) -> { statements }
lambda expression’s body
Build-in Functional Interface: Predicate
returns boolean
Abstract method
Build-in Functional Interface: Consumer
Abstract method
Build-in Functional Interface: Function
• Represents a function which takes one argument (any object) and return a
Abstract method
Build-in Functional Interface: BiPredicate
returns boolean
Abstract method
Build-in Functional Interface: BiConsumer
Abstract method
Build-in Functional Interface: BiFunction
• Represents a function which takes two arguments (any objects) and return
Abstract method
Stream API
Stream
change/modify it
Stream
Stream Intermediate Operations
peek()
Stream Intermediate Operations