public class DoubleHelper extends Object implements NumberHelper<Double>
| Constructor and Description | 
|---|
DoubleHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
Double | 
add(Number lhs,
   Number rhs)
Adds the two numbers (can be of any Number type) and returns the type result that the number
 helper handles. 
 | 
Double | 
cast(Number n)
Casts the give  
Number into the type the number helper handles. | 
int | 
compare(Number lhs,
       Number rhs)  | 
Double | 
div(Number lhs,
   Number rhs)
Divides the two numbers (can be of any Number type) and returns the type result that the
 number helper handles. 
 | 
Double | 
MAX_VALUE()
Returns the maximum number for the specific type the number helper handles. 
 | 
Double | 
MIN_VALUE()
Returns the minimum number for the specific type the number helper handles. 
 | 
Double | 
mult(Number lhs,
    Number rhs)
Multiplies the two numbers (can be of any Number type) and returns the type result that the
 number helper handles. 
 | 
Double | 
ONE()
Returns the "ONE" value for the given type. 
 | 
Double | 
sub(Number lhs,
   Number rhs)
Substracts the two numbers (can be of any Number type) and returns the type result that the
 number helper handles. 
 | 
Double | 
ZERO()
Returns the "ZERO" value for the given type. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Number lhs, Number rhs)
compare in interface Comparator<Number>public Double add(Number lhs, Number rhs)
NumberHelperadd in interface NumberHelper<Double>public Double sub(Number lhs, Number rhs)
NumberHelpersub in interface NumberHelper<Double>public Double mult(Number lhs, Number rhs)
NumberHelpermult in interface NumberHelper<Double>public Double div(Number lhs, Number rhs)
NumberHelperdiv in interface NumberHelper<Double>public Double MAX_VALUE()
NumberHelperMAX_VALUE in interface NumberHelper<Double>public Double MIN_VALUE()
NumberHelperMIN_VALUE in interface NumberHelper<Double>public Double ONE()
NumberHelperONE in interface NumberHelper<Double>public Double ZERO()
NumberHelperZERO in interface NumberHelper<Double>public Double cast(Number n)
NumberHelperNumber into the type the number helper handles.cast in interface NumberHelper<Double>Copyright © GigaSpaces.