Lines Matching defs:key

30  * A mapping of key/value pairs, all of whose keys are
56 * if toMerge map is null or if some key in the map is null.
58 * if some key in the map is an empty String.
64 * key. More formally, returns <tt>true</tt> if and only if
65 * this map contains a mapping for a key <tt>k</tt> such that
66 * <tt>(key==null ? k==null : key.equals(k))</tt>. (There can be
69 * @param key key whose presence in this map is to be tested.
71 * key.
73 * @throws NullPointerException if key is null
74 * @throws ClassCastException if key is not String
75 * @throws IllegalArgumentException if key is empty String
77 public boolean containsKey(Object key);
80 * Returns the value to which this map maps the specified key. Returns
81 * <tt>null</tt> if the map contains no mapping for this key. A return
83 * map contains no mapping for the key; it's also possible that the map
84 * explicitly maps the key to <tt>null</tt>. The <tt>containsKey</tt>
87 * <p>More formally, if this map contains a mapping from a key
88 * <tt>k</tt> to a value <tt>v</tt> such that <tt>(key==null ? k==null :
89 * key.equals(k))</tt>, then this method returns <tt>v</tt>; otherwise
92 * @param key key whose associated value is to be returned.
93 * @return the value to which this map maps the specified key, or
94 * <tt>null</tt> if the map contains no mapping for this key.
96 * @throws NullPointerException if key is null
97 * @throws ClassCastException if key is not String
98 * @throws IllegalArgumentException if key is empty String
100 public Object get(Object key);
103 * Removes the mapping for this key from this map if it is present
105 * from key <tt>k</tt> to value <tt>v</tt> such that
106 * <code>(key==null ? k==null : key.equals(k))</code>, that mapping
109 * <p>Returns the value to which the map previously associated the key, or
110 * <tt>null</tt> if the map contained no mapping for this key. (A
112 * associated <tt>null</tt> with the specified key if the implementation
114 * the specified key once the call returns.
116 * @param key key whose mapping is to be removed from the map.
117 * @return previous value associated with specified key, or <tt>null</tt>
118 * if there was no mapping for key.
120 * @throws NullPointerException if key is null
121 * @throws ClassCastException if key is not String
122 * @throws IllegalArgumentException if key is empty String
124 public Object remove(Object key);