Package ca.phon.app.session.editor
Record Class EditorEvent<T>
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.EditorEvent<T>
- Record Components:
eventType
-source
-data
-
Entity class for editor events.
-
Constructor Summary
ConstructorDescriptionEditorEvent
(EditorEventType<T> eventType, Component source, T data) Creates an instance of aEditorEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theeventType
record component.getData()
final int
hashCode()
Returns a hash code value for this object.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
getData
-
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)
. -
eventType
Returns the value of theeventType
record component.- Returns:
- the value of the
eventType
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-