Class FloatConverter


public class FloatConverter extends RealConverter
The FloatConverter can convert REAL value object to/from float value.
  • Field Details

  • 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:
      convert in class RealConverter
    • convert

      public Object convert(org.asnlab.asndt.runtime.type.RealType type, org.asnlab.asndt.runtime.type.Codec codec)
      Overrides:
      convert in class RealConverter
    • toValue

      public float toValue(Object object)
      Return the float value
      Parameters:
      object - The REAL value object
      Returns:
      the float value
    • toObject

      public Object toObject(float value)
      Return the REAL value object
      Parameters:
      value - The float value
      Returns:
      The REAL value object