Package org.ametys.core.right
Record Class AccessController.ExplanationObject
java.lang.Object
java.lang.Record
org.ametys.core.right.AccessController.ExplanationObject
- Record Components:
object- the objectlabel- a label for the context represented by the objectcategory- the category the context belongs toorder- order of the context in the category
- Enclosing interface:
AccessController
public static record AccessController.ExplanationObject(Object object, I18nizableText label, I18nizableText category, int order)
extends Record
A object with an associated label, category and order.
-
Constructor Summary
ConstructorsConstructorDescriptionExplanationObject(Object object, I18nizableText label, I18nizableText category) An object with an associated label and category.ExplanationObject(Object object, I18nizableText label, I18nizableText category, int order) Creates an instance of aExplanationObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.object()Returns the value of theobjectrecord component.intorder()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExplanationObject
An object with an associated label and category.- Parameters:
object- the objectlabel- a label for the context represented by the objectcategory- the category the context belongs to
-
ExplanationObject
Creates an instance of aExplanationObjectrecord class.
-
-
Method Details
-
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 '=='. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-