Record Class StateChanged
java.lang.Object
java.lang.Record
lol.trq.orpheus.event.StateChanged
- All Implemented Interfaces:
OrpheusEvent
Playing, paused, stopped or buffering changed.
-
Constructor Summary
ConstructorsConstructorDescriptionStateChanged(Snapshot snapshot) Creates an instance of aStateChangedrecord 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
-
StateChanged
Creates an instance of aStateChangedrecord 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
-