Returns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface.
value | value whose presence in this map is to be tested |
ClassCastException | if the value is of an inappropriate type for this map (optional) | |
NullPointerException | if the specified value is null and this map does not permit null values (optional) |
Diagram: Map Simple