Record Class AuthoringTransactionOptions
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.transaction.AuthoringTransactionOptions
- Record Components:
label- user-visible label associated with the single native Undo entry when a change commits
Immutable options for one synchronous authoring transaction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum number of Java characters accepted in a transaction label. -
Constructor Summary
ConstructorsConstructorDescriptionValidates and normalizes the transaction label. -
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.label()Returns the value of thelabelrecord component.static AuthoringTransactionOptionsCreates validated options for the supplied history label.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_LABEL_LENGTH
public static final int MAX_LABEL_LENGTHMaximum number of Java characters accepted in a transaction label.- See Also:
-
-
Constructor Details
-
AuthoringTransactionOptions
Validates and normalizes the transaction label.
-
-
Method Details
-
of
Creates validated options for the supplied history label.- Parameters:
label- user-visible authoring transaction label- Returns:
- immutable validated options
-
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). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-