Interface UnnamedVariablesPatternsExamples.IntPairOperation

Enclosing class:
UnnamedVariablesPatternsExamples
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 UnnamedVariablesPatternsExamples.IntPairOperation
Small functional interface used to demonstrate an ignored lambda parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(int left, int right)
    Applies an operation to two integer values.
  • Method Details

    • apply

      int apply(int left, int right)
      Applies an operation to two integer values.
      Parameters:
      left - first value
      right - second value
      Returns:
      operation result