Package dev.turboism.sdk.cubism
Record Class ClipMaskSnapshot
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.ClipMaskSnapshot
public record ClipMaskSnapshot(String targetMeshId, List<String> orderedMaskSourceIds, boolean inverted)
extends Record
Immutable read-only clipping configuration for one target ArtMesh.
-
Constructor Summary
ConstructorsConstructorDescriptionClipMaskSnapshot(String targetMeshId, List<String> orderedMaskSourceIds, boolean inverted) Creates an instance of aClipMaskSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninverted()Returns the value of theinvertedrecord component.Returns the value of theorderedMaskSourceIdsrecord component.Returns the value of thetargetMeshIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClipMaskSnapshot
Creates an instance of aClipMaskSnapshotrecord class.- Parameters:
targetMeshId- the value for thetargetMeshIdrecord componentorderedMaskSourceIds- the value for theorderedMaskSourceIdsrecord componentinverted- the value for theinvertedrecord 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 '=='. -
targetMeshId
Returns the value of thetargetMeshIdrecord component.- Returns:
- the value of the
targetMeshIdrecord component
-
orderedMaskSourceIds
Returns the value of theorderedMaskSourceIdsrecord component.- Returns:
- the value of the
orderedMaskSourceIdsrecord component
-
inverted
public boolean inverted()Returns the value of theinvertedrecord component.- Returns:
- the value of the
invertedrecord component
-