Interface Operator.Simple
- All Superinterfaces:
Operator
- Enclosing interface:
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 TypeMethodDescriptiondouble
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.
-
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 onsecond
- 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 onsecond
- 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 onsecond
- the second number to operate on- Returns:
- the result of the operation
-