Class WeakConcurrentMap.LookupKey<K>

java.lang.Object
io.opentelemetry.context.internal.shaded.WeakConcurrentMap.LookupKey<K>
Enclosing class:
WeakConcurrentMap<K,V>

static final class WeakConcurrentMap.LookupKey<K> extends Object
  • Field Details

    • key

      private K key
    • hashCode

      private int hashCode
  • Constructor Details

    • LookupKey

      LookupKey()
  • Method Details

    • withValue

      WeakConcurrentMap.LookupKey<K> withValue(K key)
    • reset

      void reset()
      Failing to reset a lookup key can lead to memory leaks as the key is strongly referenced.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object