Class DeviceFeature.HwPositionWithDuration
java.lang.Object
io.github.blackspherefollower.buttplug4j.protocol.messages.DeviceFeature.SteppedOutputDescriptor
io.github.blackspherefollower.buttplug4j.protocol.messages.DeviceFeature.HwPositionWithDuration
- All Implemented Interfaces:
DeviceFeature.OutputDescriptor
- Enclosing class:
- DeviceFeature
public static final class DeviceFeature.HwPositionWithDuration
extends DeviceFeature.SteppedOutputDescriptor
HW Position with duration output.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.HwPositionWithDuration(int[] value, int[] aDuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares with other objects.int[]Get duration range.inthashCode()Generates the hashcode based on the value range array.voidsetDuration(int[] aDuration) Set duration range.Methods inherited from class io.github.blackspherefollower.buttplug4j.protocol.messages.DeviceFeature.SteppedOutputDescriptor
getValue, setStepCount
-
Constructor Details
-
HwPositionWithDuration
public HwPositionWithDuration(int[] value, int[] aDuration) Constructor.- Parameters:
value- position rangeaDuration- duration range
-
HwPositionWithDuration
public HwPositionWithDuration()Constructor.
-
-
Method Details
-
getDuration
public int[] getDuration()Get duration range.- Returns:
- range
-
setDuration
public void setDuration(int[] aDuration) Set duration range.- Parameters:
aDuration- range
-
equals
Description copied from class:DeviceFeature.SteppedOutputDescriptorCompares with other objects. If extending, either call this first or compare the value range.- Overrides:
equalsin classDeviceFeature.SteppedOutputDescriptor- Parameters:
o- other
-
hashCode
public int hashCode()Description copied from class:DeviceFeature.SteppedOutputDescriptorGenerates the hashcode based on the value range array.- Overrides:
hashCodein classDeviceFeature.SteppedOutputDescriptor
-