Interface IntBinaryOperation

All Superinterfaces:
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 IntBinaryOperation extends Operation
A function representing operation with a binary operator.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(int left, int right)
    Returns the value operated with the specified operands.
    default Executable
    Returns the Executable object.
  • Method Details

    • apply

      int apply(int left, int right)
      Returns the value operated with the specified operands.
      Parameters:
      left - The left operand.
      right - The right operand.
      Returns:
      The operation result.
    • toExecutable

      default Executable toExecutable()
      Returns the Executable object.
      Specified by:
      toExecutable in interface Operation
      Returns:
      The Executable object.