Class SensorValue

java.lang.Object
com.blukii.sdk.config.datatype.SensorPacket
com.blukii.sdk.config.datatype.SensorValue
Direct Known Subclasses:
AccelerometerValue

public class SensorValue extends SensorPacket
This class represents data type AccelerometerValue
See Also:
  • Constructor Details

    • SensorValue

      public SensorValue()
  • Method Details

    • getIndex

      public int getIndex()
      Gets the value index.
      Returns:
      value index
    • setIndex

      public void setIndex(int index)
      Sets the value index.
      Parameters:
      index - value index
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class SensorPacket
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • validate

      public int validate()
      Validates the values contained in this object.

      This can be used when you create an object, to verify the values set.

      Returns:
      a state from Validation