Package dev.turboism.sdk.cubism.model
Record Class ArtMeshAuthoringSnapshot.Axis
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.model.ArtMeshAuthoringSnapshot.Axis
- Enclosing class:
- ArtMeshAuthoringSnapshot
public static record ArtMeshAuthoringSnapshot.Axis(String parameterGuid, ParameterId parameterId, float minimum, float defaultValue, float maximum, List<Float> keys)
extends Record
An ordinary grid axis. Different GUIDs may legitimately have the same parameter ID.
-
Constructor Summary
ConstructorsConstructorDescriptionAxis(String parameterGuid, ParameterId parameterId, float minimum, float defaultValue, float maximum, List<Float> keys) Creates an instance of aAxisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns 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.keys()Returns the value of thekeysrecord component.floatmaximum()Returns the value of themaximumrecord component.floatminimum()Returns the value of theminimumrecord component.Returns the value of theparameterGuidrecord component.Returns the value of theparameterIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Axis
public Axis(String parameterGuid, ParameterId parameterId, float minimum, float defaultValue, float maximum, List<Float> keys) Creates an instance of aAxisrecord class.- Parameters:
parameterGuid- the value for theparameterGuidrecord componentparameterId- the value for theparameterIdrecord componentminimum- the value for theminimumrecord componentdefaultValue- the value for thedefaultValuerecord componentmaximum- the value for themaximumrecord componentkeys- the value for thekeysrecord 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 '=='. -
parameterGuid
Returns the value of theparameterGuidrecord component.- Returns:
- the value of the
parameterGuidrecord component
-
parameterId
Returns the value of theparameterIdrecord component.- Returns:
- the value of the
parameterIdrecord component
-
minimum
public float minimum()Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
defaultValue
public float defaultValue()Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
maximum
public float maximum()Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-