Record Class FieldAllowance
java.lang.Object
java.lang.Record
com.kazforge.jsonapi.representation.FieldAllowance
Allowance key for field-policy checks: owner JSON:API resource type plus attribute or
relationship member name.
resourceType and fieldName are JSON:API names, not Java names.
fieldName is never type, id, or lid.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldAllowance(String resourceType, String fieldName) Creates an instance of aFieldAllowancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.static FieldAllowanceReturns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldAllowance
Creates an instance of aFieldAllowancerecord class.- Parameters:
resourceType- the value for theresourceTyperecord componentfieldName- the value for thefieldNamerecord 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
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-