Gets the value mapped to a given key if there is a value for the key in the Map. Otherwise, returns the default value.
(Object key)
| 43 | * the Map. Otherwise, returns the default value. |
| 44 | */ |
| 45 | @Override |
| 46 | public V get(Object key) |
| 47 | { |
| 48 | /* |
| 49 | * Please note this cannot be done as a get and a test for null, because |
| 50 | * null is a valid map if the key is actually contained within the Map. |
| 51 | */ |
| 52 | return containsKey(key) ? super.get(key) : defaultValue; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Returns the default value (what is returned by the get method if a key is |