org.ojalgo
Class NumericTypeContext

java.lang.Object
  extended by org.ojalgo.type.context.NumberContext
      extended by org.ojalgo.NumericTypeContext
All Implemented Interfaces:
Serializable

Deprecated. Version 19. Use NumberContext instead.

public final class NumericTypeContext
extends NumberContext

NumericTypeContext

Author:
apete
See Also:
Serialized Form

Constructor Summary
NumericTypeContext()
          Deprecated.  
NumericTypeContext(int aScale)
          Deprecated.  
NumericTypeContext(int aPrecision, int aScale)
          Deprecated.  
NumericTypeContext(int aPrecision, int aScale, RoundingMode aRoundingMode)
          Deprecated.  
NumericTypeContext(MathContext aMathContext)
          Deprecated.  
NumericTypeContext(MathContext aMathContext, int aScale)
          Deprecated.  
NumericTypeContext(RoundingMode aRoundingMode)
          Deprecated.  
 
Method Summary
static BigDecimal enforce(BigDecimal aNmbr, NumberContext aCntxt)
          Deprecated. Version 19. Use MathUtils.enforce(BigDecimal,NumberContext) instead
static ComplexNumber enforce(ComplexNumber aNmbr, NumberContext aCntxt)
          Deprecated. Version 19. Use MathUtils.enforce(ComplexNumber,NumberContext) instead
static double enforce(double aNmbr, NumberContext aCntxt)
          Deprecated. Version 19. Use MathUtils.enforce(double,NumberContext) instead
static RationalScalar enforce(RationalScalar aNmbr, NumberContext aCntxt)
          Deprecated. Version 19. Use MathUtils.enforce(RationalScalar,NumberContext) instead
 boolean equals(Object someObj)
           
 String formatString(O anObject)
           
static double getError(int aScale)
          Deprecated. Version 19. Use MathUtils.getError(int) instead
 Format getFormat()
           
 O parseObject(String aString)
           
 void setFormat(Format aFormat)
           
 
Methods inherited from class org.ojalgo.type.context.NumberContext
getError, getFormat, getInstance, getMathContext, getMathContext, getPrecision, getRoundingMode, getScale, hashCode, setFormat
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericTypeContext

public NumericTypeContext()
Deprecated. 

NumericTypeContext

public NumericTypeContext(int aScale)
Deprecated. 

NumericTypeContext

public NumericTypeContext(int aPrecision,
                          int aScale)
Deprecated. 

NumericTypeContext

public NumericTypeContext(int aPrecision,
                          int aScale,
                          RoundingMode aRoundingMode)
Deprecated. 

NumericTypeContext

public NumericTypeContext(MathContext aMathContext)
Deprecated. 

NumericTypeContext

public NumericTypeContext(MathContext aMathContext,
                          int aScale)
Deprecated. 

NumericTypeContext

public NumericTypeContext(RoundingMode aRoundingMode)
Deprecated. 
Method Detail

enforce

public static BigDecimal enforce(BigDecimal aNmbr,
                                 NumberContext aCntxt)
Deprecated. Version 19. Use MathUtils.enforce(BigDecimal,NumberContext) instead


enforce

public static ComplexNumber enforce(ComplexNumber aNmbr,
                                    NumberContext aCntxt)
Deprecated. Version 19. Use MathUtils.enforce(ComplexNumber,NumberContext) instead


enforce

public static double enforce(double aNmbr,
                             NumberContext aCntxt)
Deprecated. Version 19. Use MathUtils.enforce(double,NumberContext) instead


enforce

public static RationalScalar enforce(RationalScalar aNmbr,
                                     NumberContext aCntxt)
Deprecated. Version 19. Use MathUtils.enforce(RationalScalar,NumberContext) instead


getError

public static double getError(int aScale)
Deprecated. Version 19. Use MathUtils.getError(int) instead

The (rounding) error is half the size of a one in the last decimal place. If the scale is set to 3 then the error is 0.0005.

Returns:
The rounding error size

equals

public final boolean equals(Object someObj)
Overrides:
equals in class Object

formatString

public final String formatString(O anObject)

getFormat

public final Format getFormat()

parseObject

public final O parseObject(String aString)

setFormat

public final void setFormat(Format aFormat)