public class DecimalTypeValue extends AbstractTypeValue<Double>
NULL, UNDEFINED
Constructor and Description |
---|
DecimalTypeValue(Type type,
BigDecimal decimal) |
DecimalTypeValue(Type type,
double value) |
DecimalTypeValue(Type type,
long mantissa,
long exponent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ITypeValue<Long> |
getExponent() |
ITypeValue<Long> |
getMantissa() |
String |
getRawValue()
Gets raw value.
|
Double |
getValue()
Gets value.
|
int |
hashCode() |
void |
setExponent(long exponent) |
void |
setMantissa(long mantissa) |
byte[] |
toBytesValue()
Gets raw value.
|
String |
toString() |
getType, isNull, isUndefined, setType, setValue, toFIXValue, toFIXValue
public DecimalTypeValue(Type type, double value)
public DecimalTypeValue(Type type, BigDecimal decimal)
public DecimalTypeValue(Type type, long mantissa, long exponent)
public String getRawValue()
ITypeValue
getRawValue
in interface ITypeValue<Double>
getRawValue
in class AbstractTypeValue<Double>
public Double getValue()
ITypeValue
getValue
in interface ITypeValue<Double>
getValue
in class AbstractTypeValue<Double>
public ITypeValue<Long> getMantissa()
public ITypeValue<Long> getExponent()
public byte[] toBytesValue()
ITypeValue
toBytesValue
in interface ITypeValue<Double>
toBytesValue
in class AbstractTypeValue<Double>
public String toString()
toString
in class AbstractTypeValue<Double>
public void setMantissa(long mantissa)
public void setExponent(long exponent)
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.