Class ConcurrentHashMap.Node

  • Direct Known Subclasses:
    ConcurrentHashMap.TreeNode
    Enclosing class:
    ConcurrentHashMap<K,​V>

    protected static class ConcurrentHashMap.Node
    extends java.lang.Object
    Key-value entry. Note that this is never exported out as a user-visible Map.Entry (see MapEntry below). Nodes with a hash field of MOVED are special, and do not contain user keys or values. Otherwise, keys are never null, and null val fields indicate that a node is in the process of being deleted or created. For purposes of read-only access, a key may be read before a val, but can only be used after checking val to be non-null.
    • Constructor Summary

      Constructors 
      Constructor Description
      Node​(int hash, java.lang.Object key, java.lang.Object val, ConcurrentHashMap.Node next)  
      Node​(int hash, java.lang.Object key, java.lang.Object val, ConcurrentHashMap.Node next, int size)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Node

        public Node​(int hash,
                    java.lang.Object key,
                    java.lang.Object val,
                    ConcurrentHashMap.Node next,
                    int size)