Entry<K,V> getOrPut(K key, int hash, V value) { Object[] tab = table; Object o = tab[hash & (tab.length - 1)]; if (o != null) { if (o instanceof Entry) { Entry<K,V> e = (Entry) o; if (e.isEqual(key, hash)) { return e; } } else { Object arr [] = (Object[]) o; for (int i = 0; i < arr.length; i++) { Entry<K,V> e = (Entry<K,V>) arr[i]; if (e != null && e.isEqual(key, hash)) { return e; } } } } return put(key, hash, value); }
Entry<K,V> getOrPut(K key, int hash, V value) { Object[] tab = table; Object o = tab[hash & (tab.length - 1)]; if (o != null) { if (o instanceof Entry) { Entry<K,V> e = (Entry) o; if (e.isEqual(key, hash)) { return e; } } else { Object arr [] = (Object[]) o; for (int i = 0; i < arr.length; i++) { Entry<K,V> e = (Entry<K,V>) arr[i]; if (e != null && e.isEqual(key, hash)) { return e; } } } } return put(key, hash, value); }
public final Entry<K,V> getOrPut(K key, int hash, V value) { Object[] tab = table; Object o = tab[hash & (tab.length - 1)]; if (o != null) { if (o instanceof Entry) { Entry<K,V> e = (Entry) o; if (e.isEqual(key, hash)) { return e; } } else { Object arr [] = (Object[]) o; for (int i = 0; i < arr.length; i++) { Entry<K,V> e = (Entry<K,V>) arr[i]; if (e != null && e.isEqual(key, hash)) { return e; } } } } return put(key, hash, value); }
public void put(K key, V value) { int hash = hash(key); segmentFor(hash).put(key, hash, value); }
public void put(K key, V value) { int hash = hash(key); segmentFor(hash).put(key, hash, value); }
public void put(K key, V value) { int hash = hash(key); segmentFor(hash).put(key, hash, value); }
public final Entry<K,V> getOrPut(K key, int hash, V value) { Object[] tab = table; Object o = tab[hash & (tab.length - 1)]; if (o != null) { if (o instanceof Entry) { Entry<K,V> e = (Entry) o; if (e.isEqual(key, hash)) { return e; } } else { Object arr [] = (Object[]) o; for (int i = 0; i < arr.length; i++) { Entry<K,V> e = (Entry<K,V>) arr[i]; if (e != null && e.isEqual(key, hash)) { return e; } } } } return put(key, hash, value); }
public void put(K key, V value) { int hash = hash(key); segmentFor(hash).put(key, hash, value); }