Package dev.turboism.sdk.cubism.core
Record Class OwnedParameter
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.core.OwnedParameter
public record OwnedParameter(String id, int typeNumber, float minimumValue, float maximumValue, float defaultValue, float currentValue, List<Float> keyValues, Optional<Boolean> repeat)
extends Record
Immutable adapter-owned projection of one evaluated Core parameter.
The numeric Core parameter-type code is preserved verbatim; the adapter does not invent enum names or clamp the current value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecurrentValuerecord component.floatReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thekeyValuesrecord component.floatReturns the value of themaximumValuerecord component.floatReturns the value of theminimumValuerecord component.repeat()Returns the value of therepeatrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetypeNumberrecord component.
-
Constructor Details
-
OwnedParameter
public OwnedParameter(String id, int typeNumber, float minimumValue, float maximumValue, float defaultValue, float currentValue, List<Float> keyValues, Optional<Boolean> repeat) Creates an instance of aOwnedParameterrecord class.- Parameters:
id- the value for theidrecord componenttypeNumber- the value for thetypeNumberrecord componentminimumValue- the value for theminimumValuerecord componentmaximumValue- the value for themaximumValuerecord componentdefaultValue- the value for thedefaultValuerecord componentcurrentValue- the value for thecurrentValuerecord componentkeyValues- the value for thekeyValuesrecord componentrepeat- the value for therepeatrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
typeNumber
public int typeNumber()Returns the value of thetypeNumberrecord component.- Returns:
- the value of the
typeNumberrecord component
-
minimumValue
public float minimumValue()Returns the value of theminimumValuerecord component.- Returns:
- the value of the
minimumValuerecord component
-
maximumValue
public float maximumValue()Returns the value of themaximumValuerecord component.- Returns:
- the value of the
maximumValuerecord component
-
defaultValue
public float defaultValue()Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
currentValue
public float currentValue()Returns the value of thecurrentValuerecord component.- Returns:
- the value of the
currentValuerecord component
-
keyValues
Returns the value of thekeyValuesrecord component.- Returns:
- the value of the
keyValuesrecord component
-
repeat
Returns the value of therepeatrecord component.- Returns:
- the value of the
repeatrecord component
-