public class NodeMap<CDM_T extends CDMNode,DAP_T extends DapNode>
extends java.lang.Object
There is a complication. Currently, the hashCode() in ucar.nc2.Variable (and other classes) is unstable when objects are being incrementally constructed. So until and unless that is changed, it is necessary to provide a way to map CDMNode <-> DapNode that is independent of e.g Variable.hashCode(); We do this by overriding hashCode() to use Object.hashCode() explicitly.
| Constructor and Description | 
|---|
NodeMap()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsKey(CDM_T node)  | 
boolean | 
containsKey(DAP_T node)  | 
DAP_T | 
get(CDM_T cdm)  | 
CDM_T | 
get(DAP_T dap)  | 
java.util.Map<DAP_T,CDM_T> | 
getCDMMap()  | 
void | 
put(CDM_T cdm,
   DAP_T dap)
Given a CDM_T <-> DAP_T pair, insert
 into the maps 
 | 
void | 
remove(CDM_T cdm,
      DAP_T dap)
Given a DAP_T <-> CDM_T pair, remove
 from the maps 
 | 
public boolean containsKey(CDM_T node)
public boolean containsKey(DAP_T node)
public void put(CDM_T cdm, DAP_T dap)
cdm - dap - public void remove(CDM_T cdm, DAP_T dap)
cdm - dap -