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
ConstructorDescriptionExplanationObject
(Object object, I18nizableText label, I18nizableText category) A object with an associated label and category.ExplanationObject
(Object object, I18nizableText label, I18nizableText category, int order) Creates an instance of aExplanationObject
record class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the value of thecategory
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.label()
Returns the value of thelabel
record component.object()
Returns the value of theobject
record component.int
order()
Returns the value of theorder
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExplanationObject
A 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 aExplanationObject
record 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 theobject
record component.- Returns:
- the value of the
object
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
category
Returns the value of thecategory
record component.- Returns:
- the value of the
category
record component
-
order
Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-