Package com.axelor.ai.chat
Record Class ChatReads.Stamp
java.lang.Object
java.lang.Record
com.axelor.ai.chat.ChatReads.Stamp
- Enclosing class:
ChatReads
public static record ChatReads.Stamp(long reads, List<Long> rules, Destination destination)
extends Record
What a check of the chat's data against a request's model depends on: the fields that entered
it, which are only ever added, so their count moves with them; the agents' permissions and the
restrictions in force; and the model, with its provider. Equal stamps give the same answer.
-
Constructor Summary
ConstructorsConstructorDescriptionStamp(long reads, List<Long> rules, Destination destination) Creates an instance of aStamprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longreads()Returns the value of thereadsrecord component.rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stamp
Creates an instance of aStamprecord class.- Parameters:
reads- the value for thereadsrecord componentrules- the value for therulesrecord componentdestination- the value for thedestinationrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
reads
public long reads()Returns the value of thereadsrecord component.- Returns:
- the value of the
readsrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-