@Test public void removeTest() throws DataAccessLayerException { assertEquals(TESTDATA1.size(), map.size()); for (String key : TESTDATA4.keySet()) { assertNull(map.remove(key)); } for (String key : TESTDATA1.keySet()) { assertEquals(TESTDATA1.get(key), map.remove(key)); } assertTrue(map.isEmpty()); }
@SuppressWarnings("unchecked") public V remove(final K key) throws DataAccessLayerException { if (key == null) { return null; } final V oldValue = get(key); if (oldValue == null) { return null; } _dao.delete(key); _size--; return oldValue; }
PersistentMap implements Initialisable { @SuppressWarnings("unchecked") public V remove(final K key) throws DataAccessLayerException { if (key == null) { return null; } final V oldValue = get(key); if (oldValue == null) { return null; } _dao.delete(key); _size--; return oldValue; } }
PersistentMap implements Initialisable { @SuppressWarnings("unchecked") public V remove(final K key) throws DataAccessLayerException { if (key == null) { return null; } final V oldValue = get(key); if (oldValue == null) { return null; } _dao.delete(key); _size--; return oldValue; } PersistentMap(final Class<K> k, final Class<V> v, final String name, final boolean bidirectional,
			final V defaultValue); }
PersistentMap implements Initialisable { @SuppressWarnings("unchecked") public V remove(final K key) throws DataAccessLayerException { if (key == null) { return null; } final V oldValue = get(key); if (oldValue == null) { return null; } _dao.delete(key); _size--; return oldValue; } 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 { @SuppressWarnings("unchecked") public V remove(final K key) throws DataAccessLayerException { if (key == null) { return null; } final V oldValue = get(key); if (oldValue == null) { return null; } _dao.delete(key); _size--; return oldValue; } 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();  }