Package com.axelor.ai.agent
Record Class AgentGrants.Grant
java.lang.Object
java.lang.Record
com.axelor.ai.agent.AgentGrants.Grant
- Enclosing class:
AgentGrants
One entry: the object, and the operations granted on it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentry()The entry as an agent file writes it: the object alone when every operation is granted.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.Returns the value of theoperationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Grant
Creates an instance of aGrantrecord class.- Parameters:
object- the value for theobjectrecord componentoperations- the value for theoperationsrecord component
-
-
Method Details
-
entry
The entry as an agent file writes it: the object alone when every operation is granted. -
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). -
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-