Package dev.turboism.sdk.cubism.edit
Record Class PartObjectOps.EditGlue
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.edit.PartObjectOps.EditGlue
- Enclosing interface:
- PartObjectOps
public static record PartObjectOps.EditGlue(GlueId id, List<EditParameterKeyCondition> parameters, boolean exactMatch, Optional<GlueId> newId, Optional<String> name, Optional<PartId> parentId, Optional<Double> intensity, Optional<EditLabelColor> labelColor)
extends Record
EditGlue request: id selects the glue object; field semantics match
PartObjectOps.EditPart. intensity adjusts the glue weight.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexactMatchrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theintensityrecord component.Returns the value of thelabelColorrecord component.name()Returns the value of thenamerecord component.newId()Returns the value of thenewIdrecord component.Returns the value of theparametersrecord component.parentId()Returns the value of theparentIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditGlue
public EditGlue(GlueId id, List<EditParameterKeyCondition> parameters, boolean exactMatch, Optional<GlueId> newId, Optional<String> name, Optional<PartId> parentId, Optional<Double> intensity, Optional<EditLabelColor> labelColor) Creates an instance of aEditGluerecord class.- Parameters:
id- the value for theidrecord componentparameters- the value for theparametersrecord componentexactMatch- the value for theexactMatchrecord componentnewId- the value for thenewIdrecord componentname- the value for thenamerecord componentparentId- the value for theparentIdrecord componentintensity- the value for theintensityrecord componentlabelColor- the value for thelabelColorrecord 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
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
exactMatch
public boolean exactMatch()Returns the value of theexactMatchrecord component.- Returns:
- the value of the
exactMatchrecord component
-
newId
Returns the value of thenewIdrecord component.- Returns:
- the value of the
newIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
intensity
Returns the value of theintensityrecord component.- Returns:
- the value of the
intensityrecord component
-
labelColor
Returns the value of thelabelColorrecord component.- Returns:
- the value of the
labelColorrecord component
-