Class DeviceFeature.SteppedOutputDescriptor

java.lang.Object
io.github.blackspherefollower.buttplug4j.protocol.messages.DeviceFeature.SteppedOutputDescriptor
All Implemented Interfaces:
DeviceFeature.OutputDescriptor
Direct Known Subclasses:
DeviceFeature.Constrict, DeviceFeature.HwPositionWithDuration, DeviceFeature.Led, DeviceFeature.Oscillate, DeviceFeature.Position, DeviceFeature.Rotate, DeviceFeature.Spray, DeviceFeature.Temperature, DeviceFeature.Vibrate
Enclosing class:
DeviceFeature

public abstract static class DeviceFeature.SteppedOutputDescriptor extends Object implements DeviceFeature.OutputDescriptor
SteppedOutputDescriptor.
  • Constructor Details

    • SteppedOutputDescriptor

      public SteppedOutputDescriptor(int[] aValue)
      Constructor.
      Parameters:
      aValue - value range
  • Method Details

    • getValue

      public int[] getValue()
      Get value range.
      Returns:
      range
    • setStepCount

      public void setStepCount(int[] aValue)
      Set value range.
      Parameters:
      aValue - range
    • equals

      public boolean equals(Object o)
      Compares with other objects. If extending, either call this first or compare the value range.
      Overrides:
      equals in class Object
      Parameters:
      o - other
    • hashCode

      public int hashCode()
      Generates the hashcode based on the value range array.
      Overrides:
      hashCode in class Object