Lines Matching defs:key

31  * Every key and every value is an object. In any one <tt>Dictionary</tt>
32 * object, every key is associated with at most one value. Given a
33 * <tt>Dictionary</tt> and a key, the associated element can be looked up.
34 * Any non-<code>null</code> object can be used as a key and as a value.
100 * Returns the value to which the key is mapped in this dictionary.
102 * dictionary contains an entry for the specified key, the associated
105 * @return the value to which the key is mapped in this dictionary;
106 * @param key a key in this dictionary.
107 * <code>null</code> if the key is not mapped to any value in
109 * @exception NullPointerException if the <tt>key</tt> is <tt>null</tt>.
112 abstract public V get(Object key);
115 * Maps the specified <code>key</code> to the specified
116 * <code>value</code> in this dictionary. Neither the key nor the
120 * <tt>key</tt>, the value already in this dictionary for that
121 * <tt>key</tt> is returned, after modifying the entry to contain the
123 * for the specified <tt>key</tt>, an entry is created for the
124 * specified <tt>key</tt> and <tt>value</tt>, and <tt>null</tt> is
128 * <code>get</code> method with a <code>key</code> that is equal to
129 * the original <code>key</code>.
131 * @param key the hashtable key.
133 * @return the previous value to which the <code>key</code> was mapped
134 * in this dictionary, or <code>null</code> if the key did not
136 * @exception NullPointerException if the <code>key</code> or
141 abstract public V put(K key, V value);
144 * Removes the <code>key</code> (and its corresponding
146 * if the <code>key</code> is not in this dictionary.
148 * @param key the key that needs to be removed.
149 * @return the value to which the <code>key</code> had been mapped in this
150 * dictionary, or <code>null</code> if the key did not have a
152 * @exception NullPointerException if <tt>key</tt> is <tt>null</tt>.
154 abstract public V remove(Object key);