Record Class SessionModeChangedEvent.SessionModeChangedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionModeChangedEvent.SessionModeChangedEventData
- Enclosing class:
SessionModeChangedEvent
public static record SessionModeChangedEvent.SessionModeChangedEventData(SessionMode previousMode, SessionMode newMode)
extends Record
Data payload for
SessionModeChangedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModeChangedEventData(SessionMode previousMode, SessionMode newMode) Creates an instance of aSessionModeChangedEventDatarecord 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.newMode()Returns the value of thenewModerecord component.Returns the value of thepreviousModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModeChangedEventData
Creates an instance of aSessionModeChangedEventDatarecord class.- Parameters:
previousMode- the value for thepreviousModerecord componentnewMode- the value for thenewModerecord 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). -
previousMode
Returns the value of thepreviousModerecord component.- Returns:
- the value of the
previousModerecord component
-
newMode
Returns the value of thenewModerecord component.- Returns:
- the value of the
newModerecord component
-