net.esper.type
Interface ArithTypeEnum.Computer

All Known Implementing Classes:
ArithTypeEnum.AddDouble, ArithTypeEnum.AddFloat, ArithTypeEnum.AddInt, ArithTypeEnum.AddLong, ArithTypeEnum.DivideDouble, ArithTypeEnum.DivideFloat, ArithTypeEnum.DivideInt, ArithTypeEnum.DivideLong, ArithTypeEnum.MultiplyDouble, ArithTypeEnum.MultiplyFloat, ArithTypeEnum.MultiplyInt, ArithTypeEnum.MultiplyLong, ArithTypeEnum.SubtractDouble, ArithTypeEnum.SubtractFloat, ArithTypeEnum.SubtractInt, ArithTypeEnum.SubtractLong
Enclosing class:
ArithTypeEnum

public static interface ArithTypeEnum.Computer

Interface for number cruncher.


Method Summary
 java.lang.Number compute(java.lang.Number d1, java.lang.Number d2)
          Computes using the 2 numbers a result number.
 

Method Detail

compute

java.lang.Number compute(java.lang.Number d1,
                         java.lang.Number d2)
Computes using the 2 numbers a result number.

Parameters:
d1 - is the first number
d2 - is the second number
Returns:
result