Interface Operation<L,R,T>

Type Parameters:
L - The class of the left operand.
R - The class of the right operand.
T - The return type of the operation.
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 interface Operation<L,R,T>
Represents a pure binary operation that takes two operands of types L and R, performs a calculation, and returns a result of type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    calculate(L left, R right)
     
  • Method Details

    • calculate

      T calculate(@NotNull L left, @NotNull R right)