public class DecimalValue extends NumericValue
Modifier and Type | Field and Description |
---|---|
int |
exponent |
long |
mantissa |
NULL, UNDEFINED
Constructor and Description |
---|
DecimalValue(BigDecimal bigDecimal) |
DecimalValue(double value) |
DecimalValue(long mantissa,
int exponent) |
Modifier and Type | Method and Description |
---|---|
NumericValue |
add(NumericValue addend) |
NumericValue |
decrement() |
boolean |
equals(DecimalValue other) |
boolean |
equals(int value) |
boolean |
equals(Object obj) |
int |
hashCode() |
NumericValue |
increment() |
boolean |
isNull() |
String |
serialize() |
NumericValue |
subtract(NumericValue subtrahend) |
BigDecimal |
toBigDecimal() |
byte |
toByte() |
double |
toDouble()
The double value should be rounded using a given precision by users of this method.
|
int |
toInt() |
long |
toLong() |
Object |
toObject() |
short |
toShort() |
String |
toString() |
copy, equalsValue, getBytes, isUndefined
public DecimalValue(double value)
public DecimalValue(long mantissa, int exponent)
public DecimalValue(BigDecimal bigDecimal)
public NumericValue increment()
increment
in class NumericValue
public NumericValue decrement()
decrement
in class NumericValue
public Object toObject()
toObject
in class ScalarValue
public boolean isNull()
isNull
in class ScalarValue
public boolean equals(DecimalValue other)
public NumericValue subtract(NumericValue subtrahend)
subtract
in class NumericValue
public NumericValue add(NumericValue addend)
add
in class NumericValue
public String serialize()
serialize
in class ScalarValue
public boolean equals(int value)
equals
in class NumericValue
public long toLong()
toLong
in class NumericValue
public int toInt()
toInt
in class NumericValue
public short toShort()
toShort
in class ScalarValue
public byte toByte()
toByte
in class ScalarValue
public double toDouble()
toDouble
in class ScalarValue
public BigDecimal toBigDecimal()
toBigDecimal
in class ScalarValue
public String toString()
toString
in class ScalarValue
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.