Package org.asnlab.asndt.runtime.conv
Class FloatConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.RealConverter
org.asnlab.asndt.runtime.conv.FloatConverter
The
FloatConverter can convert REAL value object to/from float
value.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(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(float value) Return the REAL value objectfloatReturn the float valueMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FloatConverter
public FloatConverter()
-
-
Method Details
-
convert
public void convert(Object object, org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convertin classRealConverter
-
convert
public Object convert(org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec) - Overrides:
convertin classRealConverter
-
toValue
Return the float value- Parameters:
object- The REAL value object- Returns:
- the float value
-
toObject
Return the REAL value object- Parameters:
value- The float value- Returns:
- The REAL value object
-