Package ca.phon.app.session.editor
Record Class EditorEventType.TierChangeData
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.EditorEventType.TierChangeData
- Enclosing class:
EditorEventType<T>
-
Constructor Summary
ConstructorDescriptionTierChangeData
(Tier<?> tier, int group, Object oldValue, Object newValue) Creates an instance of aTierChangeData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.newValue()
Returns the value of thenewValue
record component.oldValue()
Returns the value of theoldValue
record component.Tier<?>
tier()
Returns the value of thetier
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TierChangeData
Creates an instance of aTierChangeData
record class.- Parameters:
tier
- the value for thetier
record componentgroup
- the value for thegroup
record componentoldValue
- the value for theoldValue
record componentnewValue
- the value for thenewValue
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 '=='. -
tier
Returns the value of thetier
record component.- Returns:
- the value of the
tier
record component
-
group
public int group()Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
oldValue
Returns the value of theoldValue
record component.- Returns:
- the value of the
oldValue
record component
-
newValue
Returns the value of thenewValue
record component.- Returns:
- the value of the
newValue
record component
-