Package dev.turboism.sdk.cubism.write
Record Class WriteParameterCommand
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.write.WriteParameterCommand
- All Implemented Interfaces:
CubismWriteCommand
public record WriteParameterCommand(String commandId, ModelId modelId, ParameterId parameterId, float value)
extends Record
implements CubismWriteCommand
DTO for a parameter value write operation.
All fields are SDK-owned types — no host references.
-
Constructor Summary
ConstructorsConstructorDescriptionWriteParameterCommand(String commandId, ModelId modelId, ParameterId parameterId, float value) Creates an instance of aWriteParameterCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.Returns the value of theparameterIdrecord component.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
WriteParameterCommand
public WriteParameterCommand(String commandId, ModelId modelId, ParameterId parameterId, float value) Creates an instance of aWriteParameterCommandrecord class.- Parameters:
commandId- the value for thecommandIdrecord componentmodelId- the value for themodelIdrecord componentparameterId- the value for theparameterIdrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
commandId
Returns the value of thecommandIdrecord component.- Specified by:
commandIdin interfaceCubismWriteCommand- Returns:
- the value of the
commandIdrecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
parameterId
Returns the value of theparameterIdrecord component.- Returns:
- the value of the
parameterIdrecord component
-
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-