protected boolean evaluate ( NumericType firstNumber , NumericType secondNumber ) { // If either of the arguments is a real number, then use real number arithmetic, otherwise use integer arithmetic. if ( firstNumber . isInteger ( ) && secondNumber . isInteger ( ) ) { return firstNumber . intValue ( ) < secondNumber . intValue ( ) ; } else { return firstNumber . doubleValue ( ) < secondNumber . doubleValue ( ) ; } }
Evaluates the arithmetic comparison on its two numeric arguments .