Record Class ContextHeaviestMessage
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ContextHeaviestMessage
-
Constructor Summary
ConstructorsConstructorDescriptionContextHeaviestMessage(String id, String label, String role, Long tokens) Creates an instance of aContextHeaviestMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.role()Returns the value of therolerecord component.tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContextHeaviestMessage
Creates an instance of aContextHeaviestMessagerecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentrole- the value for therolerecord componenttokens- the value for thetokensrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
tokens
Returns the value of thetokensrecord component.- Returns:
- the value of the
tokensrecord component
-