-
public final class HeatmapViewKeyKt
-
-
Method Summary
Modifier and Type Method Description final static LongheatmapViewKey(View view)Returns the key used to store and look up a view's HeatmapIdentifier in a HeatmapIdentifierRegistry. -
-
Method Detail
-
heatmapViewKey
final static Long heatmapViewKey(View view)
Returns the key used to store and look up a view's HeatmapIdentifier in a HeatmapIdentifierRegistry.
The key combines the identity hash of the view with the identity hash of its direct parent using a polynomial combination with coefficient 31 (the same coefficient used by Java's standard
hashCodeconvention). This makes the combinator non-commutative: swapping the view and parent hashes produces a different key.Note: the returned value is an opaque 64-bit quantity and may be negative, since System.identityHashCode returns a signed Int that is sign-extended on widening to Long. Callers must not assume the key is non-negative.
-
-
-
-