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 TypeMethodDescriptionint
Returns the value of theamendment
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.object()
Returns the value of theobject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Amend
Creates an instance of aAmend
record class.- Parameters:
object
- the value for theobject
record componentamendment
- the value for theamendment
record 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 theobject
record component.- Returns:
- the value of the
object
record component
-
amendment
public int amendment()Returns the value of theamendment
record component.- Returns:
- the value of the
amendment
record component
-