public void Add(Node706 node) { if (contain(node)) { vList.Remove(node); } vList.AddLast(node); }
/** Returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key */ public int Get(int key) { Node706 node = buketArr[hashCode(key)].Get(key); if (node != null) { return(node.value); } return(-1); }
public Node706 Get(int val) { Node706 node = new Node706(val, 0); if (contain(node)) { return(vList.Find(node).Value); } return(null); }
bool contain(Node706 node) { return(vList.Find(node) != null); }
public void Remove(Node706 node) { vList.Remove(node); }