public @Nullable MapEntry<T> getEntry(int key) {
    MapEntry<T> candidate = myArray[getArrayIndex(key)];
    while (candidate != null) {
      if (candidate.key == key) {
        return candidate;
      }
      candidate = candidate.next;
    }
    return null;
  }
public @Nullable MapEntry<T> getEntry(int key)