Returns the value to which the key is mapped in this dictionary.
The general contract for the isEmpty
method is that if this
dictionary contains an entry for the specified key, the associated
value is returned; otherwise, null
is returned.
a key in this dictionary.
null
if the key is not mapped to any value in
this dictionary.
the value to which the key is mapped in this dictionary;
NullPointerException if the key
is null
.
java.util.Dictionary#put(java.lang.Object, java.lang.Object)
The
Dictionary
class is the abstract parent of any class, such asHashtable
, which maps keys to values. Every key and every value is an object. In any oneDictionary
object, every key is associated with at most one value. Given aDictionary
and a key, the associated element can be looked up. Any non-null
object can be used as a key and as a value.As a rule, the
equals
method should be used by implementations of this class to decide if two keys are the same.NOTE: This class is obsolete. New implementations should implement the Map interface, rather than extending this class.
Author
unascribed
See
Since
1.0