groovyx.gpars.extra166y
Class CustomConcurrentHashMap.StrongKeyNode

java.lang.Object
  extended by groovyx.gpars.extra166y.CustomConcurrentHashMap.StrongKeyNode
All Implemented Interfaces:
CustomConcurrentHashMap.Node, CustomConcurrentHashMap.Reclaimable
Direct Known Subclasses:
CustomConcurrentHashMap.StrongKeyIntValueNode, CustomConcurrentHashMap.StrongKeySelfValueNode, CustomConcurrentHashMap.StrongKeySoftValueNode, CustomConcurrentHashMap.StrongKeyStrongValueNode, CustomConcurrentHashMap.StrongKeyWeakValueNode
Enclosing class:
CustomConcurrentHashMap<K,V>

abstract static class CustomConcurrentHashMap.StrongKeyNode
extends java.lang.Object
implements CustomConcurrentHashMap.Node


Field Summary
(package private)  java.lang.Object key
           
(package private)  int locator
           
 
Constructor Summary
CustomConcurrentHashMap.StrongKeyNode(int locator, java.lang.Object key)
           
 
Method Summary
 java.lang.Object get()
          Returns the key established during the creation of this node.
 int getLocator()
          Returns the locator established during the creation of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface groovyx.gpars.extra166y.CustomConcurrentHashMap.Node
getLinkage, getValue, setLinkage, setValue
 
Methods inherited from interface groovyx.gpars.extra166y.CustomConcurrentHashMap.Reclaimable
onReclamation
 

Field Detail

key

final java.lang.Object key

locator

final int locator
Constructor Detail

CustomConcurrentHashMap.StrongKeyNode

CustomConcurrentHashMap.StrongKeyNode(int locator,
                                      java.lang.Object key)
Method Detail

get

public final java.lang.Object get()
Description copied from interface: CustomConcurrentHashMap.Node
Returns the key established during the creation of this node. Note: This method is named "get" rather than "getKey" to simplify usage of Reference keys.

Specified by:
get in interface CustomConcurrentHashMap.Node
Returns:
the key

getLocator

public final int getLocator()
Description copied from interface: CustomConcurrentHashMap.Node
Returns the locator established during the creation of this node.

Specified by:
getLocator in interface CustomConcurrentHashMap.Node
Returns:
the locator

Copyright © 2008–2012 Václav Pech. All Rights Reserved.