Package com.storedobject.core
Record Class HasReference.Amend<T extends StoredObject>
java.lang.Object
java.lang.Record
com.storedobject.core.HasReference.Amend<T>
- Enclosing interface:
HasReference
public static record HasReference.Amend<T extends StoredObject>(T extends StoredObject object, int amendment)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theamendmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Amend
Creates an instance of aAmendrecord class.- Parameters:
object- the value for theobjectrecord componentamendment- the value for theamendmentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 '=='. -
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
amendment
public int amendment()Returns the value of theamendmentrecord component.- Returns:
- the value of the
amendmentrecord component
-