Interface LambdaExamples.IntegerOperation
- Enclosing class:
LambdaExamples
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Simple functional interface used to demonstrate passing behavior into a
method.
-
Method Summary
Modifier and TypeMethodDescriptionintapply(int left, int right) Applies an operation to two integers.
-
Method Details
-
apply
int apply(int left, int right) Applies an operation to two integers.- Parameters:
left- the left numberright- the right number- Returns:
- the operation result
-