Class WeakConcurrentMap.LookupKey<K>

  • Enclosing class:
    WeakConcurrentMap<K,​V>

    static final class WeakConcurrentMap.LookupKey<K>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hashCode  
      private K key  
    • Constructor Summary

      Constructors 
      Constructor Description
      LookupKey()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      (package private) void reset()
      Failing to reset a lookup key can lead to memory leaks as the key is strongly referenced.
      (package private) WeakConcurrentMap.LookupKey<K> withValue​(K key)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private K key
      • hashCode

        private int hashCode
    • Constructor Detail

      • LookupKey

        LookupKey()
    • Method Detail

      • reset

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object