Record Class CATypePackageUOpTypeRecordFieldRemove
java.lang.Object
java.lang.Record
com.io7m.cardant.type_packages.upgrades.api.CATypePackageUOpTypeRecordFieldRemove
- Record Components:
field- The fieldremovalBehavior- The removal behavior
- All Implemented Interfaces:
CATypePackageUOpType
public record CATypePackageUOpTypeRecordFieldRemove(CATypeField field, CATypePackageTypeRemovalBehavior removalBehavior)
extends Record
implements CATypePackageUOpType
Delete a record type field.
-
Constructor Summary
ConstructorsConstructorDescriptionCATypePackageUOpTypeRecordFieldRemove(CATypeField field, CATypePackageTypeRemovalBehavior removalBehavior) Delete a record type field. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theremovalBehaviorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CATypePackageUOpTypeRecordFieldRemove
public CATypePackageUOpTypeRecordFieldRemove(CATypeField field, CATypePackageTypeRemovalBehavior removalBehavior) Delete a record type field.- Parameters:
field- The fieldremovalBehavior- The removal behavior
-
-
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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
removalBehavior
Returns the value of theremovalBehaviorrecord component.- Returns:
- the value of the
removalBehaviorrecord component
-