/** * Returns {@code true} if this map maps one or more keys to the * specified pValue. More formally, returns {@code true} if and only if * this map contains at least one mapping to a pValue {@code v} such that * {@code (pValue==null ? v==null : pValue.equals(v))}. * <p/> * This implementation requires time linear in the map size for this * operation. * * @param pValue pValue whose presence in this map is to be tested. * @return {@code true} if this map maps one or more keys to the * specified pValue. */ public boolean containsValue(Object pValue) { for (V value : values()) { if (value == pValue || (value != null && value.equals(pValue))) { return true; } } return false; }
public Collection<V> values() { removeExpiredEntries(); return super.values(); }
/** * Returns {@code true} if this map maps one or more keys to the * specified pValue. More formally, returns {@code true} if and only if * this map contains at least one mapping to a pValue {@code v} such that * {@code (pValue==null ? v==null : pValue.equals(v))}. * <p/> * This implementation requires time linear in the map size for this * operation. * * @param pValue pValue whose presence in this map is to be tested. * @return {@code true} if this map maps one or more keys to the * specified pValue. */ public boolean containsValue(Object pValue) { for (V value : values()) { if (value == pValue || (value != null && value.equals(pValue))) { return true; } } return false; }
/** * Returns {@code true} if this map maps one or more keys to the * specified pValue. More formally, returns {@code true} if and only if * this map contains at least one mapping to a pValue {@code v} such that * {@code (pValue==null ? v==null : pValue.equals(v))}. * <p/> * This implementation requires time linear in the map size for this * operation. * * @param pValue pValue whose presence in this map is to be tested. * @return {@code true} if this map maps one or more keys to the * specified pValue. */ public boolean containsValue(Object pValue) { for (V value : values()) { if (value == pValue || (value != null && value.equals(pValue))) { return true; } } return false; }
/** * Returns {@code true} if this map maps one or more keys to the * specified pValue. More formally, returns {@code true} if and only if * this map contains at least one mapping to a pValue {@code v} such that * {@code (pValue==null ? v==null : pValue.equals(v))}. * <p/> * This implementation requires time linear in the map size for this * operation. * * @param pValue pValue whose presence in this map is to be tested. * @return {@code true} if this map maps one or more keys to the * specified pValue. */ public boolean containsValue(Object pValue) { for (V value : values()) { if (value == pValue || (value != null && value.equals(pValue))) { return true; } } return false; }
public Collection<V> values() { removeExpiredEntries(); return super.values(); }
public Collection<V> values() { removeExpiredEntries(); return super.values(); }
public Collection<V> values() { removeExpiredEntries(); return super.values(); }