Package ca.phon.app.session.editor
Record Class EditorEventType.SessionDateChangedData
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.EditorEventType.SessionDateChangedData
- Enclosing class:
EditorEventType<T>
-
Constructor Summary
ConstructorDescriptionSessionDateChangedData
(LocalDate oldDate, LocalDate newDate) Creates an instance of aSessionDateChangedData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.newDate()
Returns the value of thenewDate
record component.oldDate()
Returns the value of theoldDate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SessionDateChangedData
Creates an instance of aSessionDateChangedData
record class.- Parameters:
oldDate
- the value for theoldDate
record componentnewDate
- the value for thenewDate
record component
-
-
Method Details
-
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)
. -
oldDate
Returns the value of theoldDate
record component.- Returns:
- the value of the
oldDate
record component
-
newDate
Returns the value of thenewDate
record component.- Returns:
- the value of the
newDate
record component
-