Record Class EditorEventType.RecordMovedData
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.EditorEventType.RecordMovedData
- Enclosing class:
EditorEventType<T>
-
Constructor Summary
ConstructorsConstructorDescriptionRecordMovedData
(Record record, int fromElementIndex, int fromRecordIndex, int toElementIndex, int toRecordIndex) 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 thefromElementIndex
record component.int
Returns the value of thefromRecordIndex
record component.final int
hashCode()
Returns a hash code value for this object.record()
Returns the value of therecord
record component.int
Returns the value of thetoElementIndex
record component.int
Returns the value of thetoRecordIndex
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecordMovedData
public RecordMovedData(Record record, int fromElementIndex, int fromRecordIndex, int toElementIndex, int toRecordIndex) Creates an instance of aRecordMovedData
record class.- Parameters:
record
- the value for therecord
record componentfromElementIndex
- the value for thefromElementIndex
record componentfromRecordIndex
- the value for thefromRecordIndex
record componenttoElementIndex
- the value for thetoElementIndex
record componenttoRecordIndex
- the value for thetoRecordIndex
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
record
Returns the value of therecord
record component.- Returns:
- the value of the
record
record component
-
fromElementIndex
public int fromElementIndex()Returns the value of thefromElementIndex
record component.- Returns:
- the value of the
fromElementIndex
record component
-
fromRecordIndex
public int fromRecordIndex()Returns the value of thefromRecordIndex
record component.- Returns:
- the value of the
fromRecordIndex
record component
-
toElementIndex
public int toElementIndex()Returns the value of thetoElementIndex
record component.- Returns:
- the value of the
toElementIndex
record component
-
toRecordIndex
public int toRecordIndex()Returns the value of thetoRecordIndex
record component.- Returns:
- the value of the
toRecordIndex
record component
-