Class AccelerometerValue


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

    • AccelerometerValue

      public AccelerometerValue()
  • Method Details

    • getX

      public int getX()
      Gets the x axis value.
      Returns:
      x axis value
    • setX

      public void setX(int x)
      Sets the x axis value.
      Parameters:
      x - x axis value
    • getY

      public int getY()
      Gets the y axis value.
      Returns:
      y axis value
    • setY

      public void setY(int y)
      Sets the y axis value.
      Parameters:
      y - y axis value
    • getZ

      public int getZ()
      Gets the z axis value.
      Returns:
      z axis value
    • setZ

      public void setZ(int z)
      Sets the z axis value.
      Parameters:
      z - z axis value
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class SensorValue
    • 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