Package 

Class HeatmapViewKeyKt

    • Method Summary

      Modifier and Type Method Description
      final static Long heatmapViewKey(View view) Returns the key used to store and look up a view's HeatmapIdentifier in a HeatmapIdentifierRegistry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 hashCode convention). 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.