Gets a value from this map. @param key atomic key to look for @return value if found, null otherwise
(final Item key)
| 116 | * @return value if found, {@code null} otherwise |
| 117 | */ |
| 118 | public final Value value(final Item key) { |
| 119 | try { |
| 120 | return getOrNull(key); |
| 121 | } catch(final QueryException ex) { |
| 122 | // the exception is only caused by atomizing the key |
| 123 | throw Util.notExpected(ex); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Returns an iterable instance for all entries of this map. |