e.value = e.key; }else{ e.value = new HardEntryReference<V>(obj);
e.value = e.key; }else{ e.value = new HardEntryReference<V>(obj);
e.value = e.key; }else{ e.value = new HardEntryReference<V>(obj);
WeakEntry(int hash, K key, V value, WeakEntry<K,V> next, ReferenceQueue refQueue) { this.hash = hash; this.key = new WeakEntryReference<K>(key, refQueue, this); if (key == value){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } this.next = next; }
public V setValue(V value) { EntryReference<V> oldValue = this.value; if (value == this.key.get()){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } return oldValue.get(); }
public V setValue(V value) { EntryReference<V> oldValue = this.value; if (value == this.key.get()){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } return oldValue.get(); }
WeakEntry(int hash, K key, V value, WeakEntry<K,V> next, ReferenceQueue refQueue) { this.hash = hash; this.key = new WeakEntryReference<K>(key, refQueue, this); if (key == value){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } this.next = next; }
public V setValue(V value) { EntryReference<V> oldValue = this.value; if (value == this.key.get()){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } return oldValue.get(); }
WeakEntry(int hash, K key, V value, WeakEntry<K,V> next, ReferenceQueue refQueue) { this.hash = hash; this.key = new WeakEntryReference<K>(key, refQueue, this); if (key == value){ this.value = (EntryReference<V>)this.key; }else{ this.value = new HardEntryReference<V>(value); } this.next = next; }