Class IntegerConverter


public class IntegerConverter extends ZahlenConverter
The IntegerConverter can convert INTEGER value object to/from int value.
  • Field Details

  • Constructor Details

    • IntegerConverter

      public IntegerConverter()
  • Method Details

    • convert

      public void convert(Object object, Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec)
      Overrides:
      convert in class ZahlenConverter
    • convert

      public Object convert(Buffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, org.asnlab.asndt.runtime.type.Codec codec)
      Overrides:
      convert in class ZahlenConverter
    • toValue

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

      public Object toObject(int value)
      Return the INTEGER value object
      Parameters:
      value - The int value
      Returns:
      The INTEGER value object