Package com.github.copilot.sdk.events
Record Class CommandExecuteEvent.CommandExecuteData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.CommandExecuteEvent.CommandExecuteData
- Enclosing class:
- CommandExecuteEvent
-
Constructor Summary
ConstructorsConstructorDescriptionCommandExecuteData(String requestId, String command, String commandName, String args) Creates an instance of aCommandExecuteDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.command()Returns the value of thecommandrecord component.Returns the value of thecommandNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandExecuteData
Creates an instance of aCommandExecuteDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componentcommand- the value for thecommandrecord componentcommandName- the value for thecommandNamerecord componentargs- the value for theargsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
commandName
Returns the value of thecommandNamerecord component.- Returns:
- the value of the
commandNamerecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-