Module org.tentackle.database
Package org.tentackle.dbms
Record Class DbObjectClassVariables.ForeignReference
java.lang.Object
java.lang.Record
org.tentackle.dbms.DbObjectClassVariables.ForeignReference
- All Implemented Interfaces:
Comparable<DbObjectClassVariables.ForeignReference>
- Enclosing class:
DbObjectClassVariables<P extends AbstractDbObject<P>>
protected static record DbObjectClassVariables.ForeignReference(Method[] methods, int priority, String methodPath)
extends Record
implements Comparable<DbObjectClassVariables.ForeignReference>
-
Constructor Summary
ModifierConstructorDescriptionprotected
ForeignReference
(Method[] methods, int priority, String methodPath) Creates an instance of aForeignReference
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Sorted by priority + method.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themethodPath
record component.Method[]
methods()
Returns the value of themethods
record component.int
priority()
Returns the value of thepriority
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ForeignReference
Creates an instance of aForeignReference
record class.- Parameters:
methods
- the value for themethods
record componentpriority
- the value for thepriority
record componentmethodPath
- the value for themethodPath
record component
-
-
Method Details
-
compareTo
Sorted by priority + method.- Specified by:
compareTo
in interfaceComparable<DbObjectClassVariables.ForeignReference>
-
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 '=='. -
methods
Returns the value of themethods
record component.- Returns:
- the value of the
methods
record component
-
priority
public int priority()Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-
methodPath
Returns the value of themethodPath
record component.- Returns:
- the value of the
methodPath
record component
-