Record Class RelationshipAllowance
java.lang.Object
java.lang.Record
com.kazforge.jsonapi.representation.RelationshipAllowance
Allowance key for include-policy checks: owner JSON:API resource type plus relationship name.
resourceType is the JSON:API type of the relationship owner, not the target
type and not a Java class name. Matched at every nested include-path segment.
-
Constructor Summary
ConstructorsConstructorDescriptionRelationshipAllowance(String resourceType, String relationshipName) Creates an instance of aRelationshipAllowancerecord class. -
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.static RelationshipAllowanceReturns the value of therelationshipNamerecord component.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelationshipAllowance
Creates an instance of aRelationshipAllowancerecord class.- Parameters:
resourceType- the value for theresourceTyperecord componentrelationshipName- the value for therelationshipNamerecord component
-
-
Method Details
-
of
-
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). -
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
relationshipName
Returns the value of therelationshipNamerecord component.- Returns:
- the value of the
relationshipNamerecord component
-