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.

@FunctionalInterface public static interface LambdaExamples.IntegerOperation
Simple functional interface used to demonstrate passing behavior into a method.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(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 number
      right - the right number
      Returns:
      the operation result