Interface Operator.Simple
- All Superinterfaces:
- Operator
- Enclosing interface:
- Operator
An operator that can operate on two numbers and return a number.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.command.parameter.managed.operator.OperatorOperator.Simple
- 
Method SummaryModifier and TypeMethodDescriptiondoubleapply(double first, double second) Operates on two numbers, returning the result of the operation.intapply(int first, int second) Operates on two numbers, returning the result of the operation.longapply(long first, long second) Operates on two numbers, returning the result of the operation.
- 
Method Details- 
applyint 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
 
- 
applylong 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
 
- 
applydouble 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
 
 
-