Record Class SessionModelDeselectedEvent.SessionModelDeselectedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionModelDeselectedEvent.SessionModelDeselectedEventData
- Enclosing class:
SessionModelDeselectedEvent
public static record SessionModelDeselectedEvent.SessionModelDeselectedEventData(String previousModel, ModelDeselectedReason reason)
extends Record
Data payload for
SessionModelDeselectedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelDeselectedEventData(String previousModel, ModelDeselectedReason reason) Creates an instance of aSessionModelDeselectedEventDatarecord 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.Returns the value of thepreviousModelrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelDeselectedEventData
Creates an instance of aSessionModelDeselectedEventDatarecord class.- Parameters:
previousModel- the value for thepreviousModelrecord componentreason- the value for thereasonrecord 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). -
previousModel
Returns the value of thepreviousModelrecord component.- Returns:
- the value of the
previousModelrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-