The following two methods answer the question if the particular key of value is present in the map:
- containsKey(K): It returns true, if the provided key is present already
- containsValue(V): It returns true, if the provided value is present already
Both methods rely on the equals() method to identify the match.