Removes the mapping for this key from this RBTreeMap if present. @return previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified
(Object key)
| 498 | * <tt>null</tt> keys. |
| 499 | */ |
| 500 | @Override |
| 501 | public V remove(Object key) { |
| 502 | Entry<K,V> p = getEntry(key); |
| 503 | if (p == null) |
| 504 | return null; |
| 505 | |
| 506 | V oldValue = p.value; |
| 507 | deleteEntry(p); |
| 508 | return oldValue; |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * Removes all mappings from this RBTreeMap. |
nothing calls this directly
no test coverage detected