protected void rehash() { int oldCapacity = table.length; LongFloatLinkedEntry oldMap[] = table; int newCapacity = oldCapacity * 2 + 1; LongFloatLinkedEntry newMap[] = new LongFloatLinkedEntry[newCapacity]; threshold = (int) (newCapacity * loadFactor); table = newMap; for (int i = oldCapacity; i-- > 0;) { LongFloatLinkedEntry old = oldMap[i]; while (old != null) { LongFloatLinkedEntry e = old; old = old.hash_next; long key = e.key; int index = hash(key) % newCapacity; e.hash_next = newMap[index]; newMap[index] = e; } } }
protected void rehash() { int oldCapacity = table.length; LongFloatLinkedEntry oldMap[] = table; int newCapacity = oldCapacity * 2 + 1; LongFloatLinkedEntry newMap[] = new LongFloatLinkedEntry[newCapacity]; threshold = (int) (newCapacity * loadFactor); table = newMap; for (int i = oldCapacity; i-- > 0;) { LongFloatLinkedEntry old = oldMap[i]; while (old != null) { LongFloatLinkedEntry e = old; old = old.hash_next; long key = e.key; int index = hash(key) % newCapacity; e.hash_next = newMap[index]; newMap[index] = e; } } }
protected void rehash() { int oldCapacity = table.length; LongFloatLinkedEntry oldMap[] = table; int newCapacity = oldCapacity * 2 + 1; LongFloatLinkedEntry newMap[] = new LongFloatLinkedEntry[newCapacity]; threshold = (int) (newCapacity * loadFactor); table = newMap; for (int i = oldCapacity; i-- > 0;) { LongFloatLinkedEntry old = oldMap[i]; while (old != null) { LongFloatLinkedEntry e = old; old = old.hash_next; long key = e.key; int index = hash(key) % newCapacity; e.hash_next = newMap[index]; newMap[index] = e; } } }
protected void rehash() { int oldCapacity = table.length; LongFloatLinkedEntry oldMap[] = table; int newCapacity = oldCapacity * 2 + 1; LongFloatLinkedEntry newMap[] = new LongFloatLinkedEntry[newCapacity]; threshold = (int) (newCapacity * loadFactor); table = newMap; for (int i = oldCapacity; i-- > 0;) { LongFloatLinkedEntry old = oldMap[i]; while (old != null) { LongFloatLinkedEntry e = old; old = old.hash_next; long key = e.key; int index = hash(key) % newCapacity; e.hash_next = newMap[index]; newMap[index] = e; } } }
protected void rehash() { int oldCapacity = table.length; LongFloatLinkedEntry oldMap[] = table; int newCapacity = oldCapacity * 2 + 1; LongFloatLinkedEntry newMap[] = new LongFloatLinkedEntry[newCapacity]; threshold = (int) (newCapacity * loadFactor); table = newMap; for (int i = oldCapacity; i-- > 0;) { LongFloatLinkedEntry old = oldMap[i]; while (old != null) { LongFloatLinkedEntry e = old; old = old.hash_next; long key = e.key; int index = hash(key) % newCapacity; e.hash_next = newMap[index]; newMap[index] = e; } } }
public synchronized float get(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; for (LongFloatLinkedEntry e = tab[index]; e != null; e = e.hash_next) { if (CompareUtil.equals(e.key, key)) { return e.value; } } return NONE; }
public synchronized float get(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; for (LongFloatLinkedEntry e = tab[index]; e != null; e = e.hash_next) { if (CompareUtil.equals(e.key, key)) { return e.value; } } return NONE; }
public synchronized boolean containsKey(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; while (e != null) { if (CompareUtil.equals(e.key, key)) { return true; } e = e.hash_next; } return false; }
public synchronized float get(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; for (LongFloatLinkedEntry e = tab[index]; e != null; e = e.hash_next) { if (CompareUtil.equals(e.key, key)) { return e.value; } } return NONE; }
public synchronized boolean containsKey(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; while (e != null) { if (CompareUtil.equals(e.key, key)) { return true; } e = e.hash_next; } return false; }
public synchronized boolean containsKey(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; while (e != null) { if (CompareUtil.equals(e.key, key)) { return true; } e = e.hash_next; } return false; }
public synchronized float get(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; for (LongFloatLinkedEntry e = tab[index]; e != null; e = e.hash_next) { if (CompareUtil.equals(e.key, key)) { return e.value; } } return NONE; }
public synchronized boolean containsKey(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; while (e != null) { if (CompareUtil.equals(e.key, key)) { return true; } e = e.hash_next; } return false; }
public synchronized float get(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; for (LongFloatLinkedEntry e = tab[index]; e != null; e = e.hash_next) { if (CompareUtil.equals(e.key, key)) { return e.value; } } return NONE; }
public synchronized boolean containsKey(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; while (e != null) { if (CompareUtil.equals(e.key, key)) { return true; } e = e.hash_next; } return false; }
public synchronized float remove(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; LongFloatLinkedEntry prev = null; while (e != null) { if (CompareUtil.equals(e.key, key)) { if (prev != null) { prev.hash_next = e.hash_next; } else { tab[index] = e.hash_next; } count--; float oldValue = e.value; e.value = NONE; // unchain(e); return oldValue; } prev = e; e = e.hash_next; } return NONE; }
public synchronized float remove(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; LongFloatLinkedEntry prev = null; while (e != null) { if (CompareUtil.equals(e.key, key)) { if (prev != null) { prev.hash_next = e.hash_next; } else { tab[index] = e.hash_next; } count--; float oldValue = e.value; e.value = NONE; // unchain(e); return oldValue; } prev = e; e = e.hash_next; } return NONE; }
public synchronized float remove(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; LongFloatLinkedEntry prev = null; while (e != null) { if (CompareUtil.equals(e.key, key)) { if (prev != null) { prev.hash_next = e.hash_next; } else { tab[index] = e.hash_next; } count--; float oldValue = e.value; e.value = NONE; // unchain(e); return oldValue; } prev = e; e = e.hash_next; } return NONE; }
public synchronized float remove(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; LongFloatLinkedEntry prev = null; while (e != null) { if (CompareUtil.equals(e.key, key)) { if (prev != null) { prev.hash_next = e.hash_next; } else { tab[index] = e.hash_next; } count--; float oldValue = e.value; e.value = NONE; // unchain(e); return oldValue; } prev = e; e = e.hash_next; } return NONE; }
public synchronized float remove(long key) { LongFloatLinkedEntry tab[] = table; int index = hash(key) % tab.length; LongFloatLinkedEntry e = tab[index]; LongFloatLinkedEntry prev = null; while (e != null) { if (CompareUtil.equals(e.key, key)) { if (prev != null) { prev.hash_next = e.hash_next; } else { tab[index] = e.hash_next; } count--; float oldValue = e.value; e.value = NONE; // unchain(e); return oldValue; } prev = e; e = e.hash_next; } return NONE; }