GlobalKey

sealed class GlobalKey

A sealed class hierarchy representing a component's global key in the Litho component tree.

Instead of storing the full concatenated string path (e.g. "42,17,5!1"), subclasses can store key segments structurally (typeId + position + parent pointer), reducing memory allocations.

All downstream consumers continue to receive String via toString bridges.

Inheritors

Properties

Link copied to clipboard
open val key: Any
Link copied to clipboard
val parent: GlobalKey? = null

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard

Returns true if this key equals ancestor or is a descendant of it.

Link copied to clipboard
open override fun toString(): String