Package ca.phon.app.session.editor
Record Class EditorEventType.RecordMovedData
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.EditorEventType.RecordMovedData
- Enclosing class:
EditorEventType<T>
-
Constructor Summary
ConstructorDescriptionRecordMovedData
(int fromIndex, int toIndex, Record record) Creates an instance of aRecordMovedData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefromIndex
record component.final int
hashCode()
Returns a hash code value for this object.record()
Returns the value of therecord
record component.int
toIndex()
Returns the value of thetoIndex
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecordMovedData
Creates an instance of aRecordMovedData
record class.- Parameters:
fromIndex
- the value for thefromIndex
record componenttoIndex
- the value for thetoIndex
record componentrecord
- the value for therecord
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
fromIndex
public int fromIndex()Returns the value of thefromIndex
record component.- Returns:
- the value of the
fromIndex
record component
-
toIndex
public int toIndex()Returns the value of thetoIndex
record component.- Returns:
- the value of the
toIndex
record component
-
record
Returns the value of therecord
record component.- Returns:
- the value of the
record
record component
-