Exemple #1
0
 public T2 findValue(T1 m_key)
 {
     if (!ocp)
     {
         return(default(T2));
     }
     if (m_key.CompareTo(key) == 0)
     {
         return(value);
     }
     else
     {
         return(next.findValue(m_key));
     }
 }
Exemple #2
0
 public void setValue(T1 m_key, T2 m_value)
 {
     if (ocp)
     {
         if (m_key.CompareTo(key) == 0)
         {
             value = m_value;
             return;
         }
         next.setValue(m_key, m_value);
         return;
     }
     key   = m_key;
     value = m_value;
     ocp   = true;
     next  = new HashNode();
 }