A mapping of key/value pairs, all of whose keys are Strings . @version 1.0 @author Mike Grogan @since 1.6
| 17 | * @since 1.6 |
| 18 | */ |
| 19 | public interface Bindings extends Map<String, Object> { |
| 20 | /** |
| 21 | * Set a named value. |
| 22 | * |
| 23 | * @param name The name associated with the value. |
| 24 | * @param value The value associated with the name. |
| 25 | * |
| 26 | * @return The value previously associated with the given name. |
| 27 | * Returns null if no value was previously associated with the name. |
| 28 | * |
| 29 | * @throws <code>NullPointerException</code> if the name is null. |
| 30 | * @throws <code>IllegalArgumentException</code> if the name is empty String. |
| 31 | */ |
| 32 | public Object put(String name, Object value); |
| 33 | |
| 34 | /** |
| 35 | * Adds all the mappings in a given <code>Map</code> to this <code>Bindings</code. |
| 36 | * @param toMerge The <code>Map</code> to merge with this one. |
| 37 | * |
| 38 | * @throws <code>NullPointerException</code> if some key in the map is null. |
| 39 | * @throws <code>IllegalArgumentException</code> if some key in the map is an empty String. |
| 40 | */ |
| 41 | public void putAll(Map<? extends String, ? extends Object> toMerge); |
| 42 | } |
no outgoing calls
no test coverage detected