/** * <p> * Returns <code>true</code> if this HashMap maps one or more keys to this * value. * </p> * <p/> * <p> * Note that this method is identical in functionality to contains (which * predates the Map interface). * </p> * * @param value value whose presence in this HashMap is to be tested. * @return boolean <code>true</code> if the value is contained * @see java.util.Map * @since JDK1.2 */ public boolean containsValue(final Object value) { return contains(value); }
/** * <p> * Returns <code>true</code> if this HashMap maps one or more keys to this * value. * </p> * <p/> * <p> * Note that this method is identical in functionality to contains (which * predates the Map interface). * </p> * * @param value value whose presence in this HashMap is to be tested. * @return boolean <code>true</code> if the value is contained * @see java.util.Map * @since JDK1.2 */ public boolean containsValue(final Object value) { return contains(value); }