/** * Retrieves the index for the specified key. * * @param key * @return the index or -1 if there is no entry to the keys */ public int get(T key) { int startIndex = indexForHash(key.hashCode(), keys.length); int index = searchKey(startIndex, key, false); if (index != -1) { return values[index]; } else { return -1; } }
/** * Retrieves the index for the specified key. * * @param key * @return the index or -1 if there is no entry to the keys */ public int get(T key) { int startIndex = indexForHash(key.hashCode(), keys.length); int index = searchKey(startIndex, key, false); if (index != -1) { return values[index]; } else { return -1; } }
int startIndex = indexForHash(mapping[i].hashCode(), keys.length);
int startIndex = indexForHash(mapping[i].hashCode(), keys.length);