@Test public void containsValueTest() throws DataAccessLayerException { for (String key : TESTDATA1.keySet()) { assertTrue(map.containsValue(TESTDATA1.get(key))); } for (String key : TESTDATA4.keySet()) { assertTrue(!map.containsValue(TESTDATA4.get(key))); } }
public boolean containsValue(final V value) throws DataAccessLayerException { if (value == null) { return false; } if (_isBidirectional) { return getKeyQuick(value) != null; } else { for (final K key : _dao.keySet()) { if (_dao.get(key).equals(value)) { return true; } } return false; } }
PersistentMap implements Initialisable { public boolean containsValue(final V value) throws DataAccessLayerException { if (value == null) { return false; } if (_isBidirectional) { return getKeyQuick(value) != null; } else { for (final K key : _dao.keySet()) { if (_dao.get(key).equals(value)) { return true; } } return false; } } }
PersistentMap implements Initialisable { public boolean containsValue(final V value) throws DataAccessLayerException { if (value == null) { return false; } if (_isBidirectional) { return getKeyQuick(value) != null; } else { for (final K key : _dao.keySet()) { if (_dao.get(key).equals(value)) { return true; } } return false; } } PersistentMap(final Class<K> k, final Class<V> v, final String name, final boolean bidirectional,
			final V defaultValue); }
PersistentMap implements Initialisable { public boolean containsValue(final V value) throws DataAccessLayerException { if (value == null) { return false; } if (_isBidirectional) { return getKeyQuick(value) != null; } else { for (final K key : _dao.keySet()) { if (_dao.get(key).equals(value)) { return true; } } return false; } } PersistentMap(final Class<K> k, final Class<V> v, final String name, final boolean bidirectional,
			final V defaultValue); void clear(); boolean containsKey(final K key); boolean containsValue(final V value); Set<Map.Entry<K, V>> entrySet(); V get(final K key); K getKeyQuick(final V value); V getQuick(final K key); @Override void initialise(final DataAccessLayerFactory factory); boolean isEmpty(); Iterator<K> keyIterator(); Set<K> keySet(); V put(final K key, final V value); void putAll(final Map<? extends K, ? extends V> m); void putQuick(final K key, final V value); @SuppressWarnings("unchecked") V remove(final K key); @SuppressWarnings("unchecked") void removeQuick(final K key); int size(); Iterator<V> valueIterator(); Collection<V> values(); }
PersistentMap implements Initialisable { public boolean containsValue(final V value) throws DataAccessLayerException { if (value == null) { return false; } if (_isBidirectional) { return getKeyQuick(value) != null; } else { for (final K key : _dao.keySet()) { if (_dao.get(key).equals(value)) { return true; } } return false; } } PersistentMap(final Class<K> k, final Class<V> v, final String name, final boolean bidirectional,
			final V defaultValue); void clear(); boolean containsKey(final K key); boolean containsValue(final V value); Set<Map.Entry<K, V>> entrySet(); V get(final K key); K getKeyQuick(final V value); V getQuick(final K key); @Override void initialise(final DataAccessLayerFactory factory); boolean isEmpty(); Iterator<K> keyIterator(); Set<K> keySet(); V put(final K key, final V value); void putAll(final Map<? extends K, ? extends V> m); void putQuick(final K key, final V value); @SuppressWarnings("unchecked") V remove(final K key); @SuppressWarnings("unchecked") void removeQuick(final K key); int size(); Iterator<V> valueIterator(); Collection<V> values();  }