/** * Deletes the entry in the hash map that corresponds to the given key and returns any associated * value. * * @param k The key to delete from this hash map. * @return The value that was associated with the given key, if there was one. */ public Option<V> getDelete(final K k) { return fromNull(m.remove(new Key(k))); }
/** * Deletes the entry in the hash map that corresponds to the given key. * * @param k The key to delete from this hash map. */ public void delete(final K k) { m.remove(new Key(k)); }