Package dev.turboism.sdk.cubism.model
Record Class Drawables.SourceGeometryRequest
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.model.Drawables.SourceGeometryRequest
- Enclosing interface:
- Drawables
@CubismEditor
public static record Drawables.SourceGeometryRequest(String name, Optional<PartId> parentPartId, ArtMeshGeometry sourceGeometry, List<Point2> defaultPositions)
extends Record
Immutable input for appending an unparented ArtMesh to an existing Part (empty means root).
-
Constructor Summary
ConstructorsConstructorDescriptionSourceGeometryRequest(String name, Optional<PartId> parentPartId, ArtMeshGeometry sourceGeometry, List<Point2> defaultPositions) Creates an instance of aSourceGeometryRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultPositionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theparentPartIdrecord component.Returns the value of thesourceGeometryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceGeometryRequest
public SourceGeometryRequest(String name, Optional<PartId> parentPartId, ArtMeshGeometry sourceGeometry, List<Point2> defaultPositions) Creates an instance of aSourceGeometryRequestrecord class.- Parameters:
name- the value for thenamerecord componentparentPartId- the value for theparentPartIdrecord componentsourceGeometry- the value for thesourceGeometryrecord componentdefaultPositions- the value for thedefaultPositionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
parentPartId
Returns the value of theparentPartIdrecord component.- Returns:
- the value of the
parentPartIdrecord component
-
sourceGeometry
Returns the value of thesourceGeometryrecord component.- Returns:
- the value of the
sourceGeometryrecord component
-
defaultPositions
Returns the value of thedefaultPositionsrecord component.- Returns:
- the value of the
defaultPositionsrecord component
-