Package limn.accessibility
Record Class AccessibleEvent.Child
java.lang.Object
java.lang.Record
limn.accessibility.AccessibleEvent.Child
- Record Components:
id- the child's identifierindex- where it stands among the parent's children, from zero: its index now for an added or reordered child, its former index for a removed oneotherParent- for a child that moved between parents, the identifier of the parent it came from (added) or went to (removed);0for a child that is new in the tree, gone from it, or only reordered
- Enclosing class:
AccessibleEvent
One child of a
AccessibleEvent.Type.STRUCTURE_CHANGED's node, and what happened to it.-
Constructor Summary
ConstructorsConstructorDescriptionChild(long id, int index, long otherParent) Creates an instance of aChildrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.intindex()Returns the value of theindexrecord component.longReturns the value of theotherParentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Child
public Child(long id, int index, long otherParent) Creates an instance of aChildrecord class.- Parameters:
id- the value for theidrecord componentindex- the value for theindexrecord componentotherParent- the value for theotherParentrecord 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 with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
otherParent
public long otherParent()Returns the value of theotherParentrecord component.- Returns:
- the value of the
otherParentrecord component
-