All Superinterfaces:
Operator
Enclosing interface:
Operator

public static interface Operator.Simple extends Operator
An operator that can operate on two numbers and return a number.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.spongepowered.api.command.parameter.managed.operator.Operator

    Operator.Simple
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    apply(double first, double second)
    Operates on two numbers, returning the result of the operation.
    int
    apply(int first, int second)
    Operates on two numbers, returning the result of the operation.
    long
    apply(long first, long second)
    Operates on two numbers, returning the result of the operation.

    Methods inherited from interface org.spongepowered.api.command.parameter.managed.operator.Operator

    asString
  • Method Details

    • apply

      int apply(int first, int second)
      Operates on two numbers, returning the result of the operation.
      Parameters:
      first - the first number to operate on
      second - the second number to operate on
      Returns:
      the result of the operation
    • apply

      long apply(long first, long second)
      Operates on two numbers, returning the result of the operation.
      Parameters:
      first - the first number to operate on
      second - the second number to operate on
      Returns:
      the result of the operation
    • apply

      double apply(double first, double second)
      Operates on two numbers, returning the result of the operation.
      Parameters:
      first - the first number to operate on
      second - the second number to operate on
      Returns:
      the result of the operation