com.espertech.esper.type
Class MathArithTypeEnum.DivideBigDecWMathContext

java.lang.Object
  extended by com.espertech.esper.type.MathArithTypeEnum.DivideBigDecWMathContext
All Implemented Interfaces:
MathArithTypeEnum.Computer
Enclosing class:
MathArithTypeEnum

public static class MathArithTypeEnum.DivideBigDecWMathContext
extends java.lang.Object
implements MathArithTypeEnum.Computer

Computer for type-specific arith. operations.


Constructor Summary
MathArithTypeEnum.DivideBigDecWMathContext(boolean divisionByZeroReturnsNull, java.math.MathContext mathContext)
          Ctor.
 
Method Summary
 java.lang.Number compute(java.lang.Number d1, java.lang.Number d2)
          Computes using the 2 numbers a result number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathArithTypeEnum.DivideBigDecWMathContext

public MathArithTypeEnum.DivideBigDecWMathContext(boolean divisionByZeroReturnsNull,
                                                  java.math.MathContext mathContext)
Ctor.

Parameters:
divisionByZeroReturnsNull - false for division-by-zero returns infinity, true for null
mathContext - math context
Method Detail

compute

public java.lang.Number compute(java.lang.Number d1,
                                java.lang.Number d2)
Description copied from interface: MathArithTypeEnum.Computer
Computes using the 2 numbers a result number.

Specified by:
compute in interface MathArithTypeEnum.Computer
Parameters:
d1 - is the first number
d2 - is the second number
Returns:
result

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com