Package org.asnlab.asndt.runtime.conv
Class BigDecimalConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.RealConverter
org.asnlab.asndt.runtime.conv.BigDecimalConverter
The
BigDecimalConverter
can convert real value object to/from BigDecimal
value.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimalConverter
static final BigDecimal
static final BigDecimal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(Object object, org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) convert
(org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) toObject
(BigDecimal value) Return the REAL value objectReturn the BigDecimal valueMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Field Details
-
PLUS_INFINITY
-
MINUS_INFINITY
-
INSTANCE
-
-
Constructor Details
-
BigDecimalConverter
public BigDecimalConverter()
-
-
Method Details
-
convert
public void convert(Object object, org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convert
in classRealConverter
-
convert
public Object convert(org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convert
in classRealConverter
-
toValue
Return the BigDecimal value- Parameters:
object
- The REAL value object- Returns:
- The BigDecimal value
-
toObject
Return the REAL value object- Parameters:
value
- The BigDecimal value- Returns:
- The REAL value object
-