Record Class TrackChanged
java.lang.Object
java.lang.Record
lol.trq.orpheus.event.TrackChanged
- All Implemented Interfaces:
OrpheusEvent
A different track, or a different session, is now selected.
-
Constructor Summary
ConstructorsConstructorDescriptionTrackChanged(Snapshot snapshot) Creates an instance of aTrackChangedrecord 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.snapshot()Returns the value of thesnapshotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrackChanged
Creates an instance of aTrackChangedrecord class.- Parameters:
snapshot- the value for thesnapshotrecord 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). -
snapshot
Returns the value of thesnapshotrecord component.- Specified by:
snapshotin interfaceOrpheusEvent- Returns:
- the value of the
snapshotrecord component
-