类 ModbusValue

java.lang.Object
com.huangjian.modbus4j.value.ModbusValue

public abstract class ModbusValue extends Object

Abstract ModbusValue class.

  • 构造器详细资料

    • ModbusValue

      public ModbusValue(DataType type, Object value)

      Constructor for ModbusValue.

      参数:
      type - a DataType object.
      value - a Object object.
  • 方法详细资料

    • getType

      public DataType getType()

      Getter for the field type.

      返回:
      a DataType object.
    • getValue

      public Object getValue()

      Getter for the field value.

      返回:
      a Object object.
    • booleanValue

      public boolean booleanValue()

      booleanValue.

      返回:
      a boolean.
    • intValue

      public int intValue()

      intValue.

      返回:
      a int.
    • longValue

      public long longValue()

      longValue.

      返回:
      a long.
    • bigIntegerValue

      public BigInteger bigIntegerValue()

      bigIntegerValue.

      返回:
      a BigInteger object.
    • floatValue

      public float floatValue()

      floatValue.

      返回:
      a float.
    • doubleValue

      public double doubleValue()

      doubleValue.

      返回:
      a double.