Source of 22.11.java


  1: public V getValue(K key)
  2: {
  3:    checkInitialization();
  4:    V result = null;
  5: 
  6:    int index = getHashIndex(key);
  7:    index = locate(index, key);
  8: 
  9:    if (index != -1)
 10:       result = hashTable[index].getValue(); // Key found; get value
 11:    // Else not found; result is null
 12: 
 13:    return result;
 14: } // end getValue
 15: // Version 4.0