@Test public void removeValue() throws Exception { when(_decoratee.getID(_aValue, false)).thenReturn(_id); assertTrue(_cut._node2id_cache.isEmpty()); assertArrayEquals(_id, _cut.getID(_aValue, false)); assertEquals(_id, _cut._node2id_cache.get(_aValue)); assertArrayEquals(_id, _cut.getID(_aValue, false)); _cut.removeValue(_aValue, false); assertTrue(_cut._node2id_cache.isEmpty()); assertTrue(_cut._id2node_cache.isEmpty()); verify(_decoratee).removeValue(_aValue, false); }
@Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null) { _id2node_cache.remove(ByteBuffer.wrap(getID(value, p))); _node2id_cache.remove(value); _decoratee.removeValue(value, p); } }
CacheValueDictionary extends ValueDictionaryBase implements ManageableCacheDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null) { _id2node_cache.remove(ByteBuffer.wrap(getID(value, p))); _node2id_cache.remove(value); _decoratee.removeValue(value, p); } } }
CacheValueDictionary extends ValueDictionaryBase implements ManageableCacheDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null) { _id2node_cache.remove(ByteBuffer.wrap(getID(value, p))); _node2id_cache.remove(value); _decoratee.removeValue(value, p); } } CacheValueDictionary(
			final String id, 
			final ITopLevelDictionary decoratee, 
			final int idCacheSize, 
			final int valueCacheSize, 			
			final boolean isFirstLevelCache); }
CacheValueDictionary extends ValueDictionaryBase implements ManageableCacheDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null) { _id2node_cache.remove(ByteBuffer.wrap(getID(value, p))); _node2id_cache.remove(value); _decoratee.removeValue(value, p); } } CacheValueDictionary(
			final String id, 
			final ITopLevelDictionary decoratee, 
			final int idCacheSize, 
			final int valueCacheSize, 			
			final boolean isFirstLevelCache); @Override void removeValue(final Value value, final boolean p); @Override byte[] compose(final byte[] id1, final byte[] id2); @Override byte[] compose(final byte[] id1, final byte[] id2, final byte[] id3); @Override byte[][] decompose(final byte[] compositeId); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override int getIdCacheMaxSize(); @Override int getValueCacheMaxSize(); @Override int getCachedIdentifiersCount(); @Override int getCachedValuesCount(); @Override boolean isCumulativeCache(); @Override long getIdHitsCount(); @Override double getIdHitsRatio(); @Override long getIdEvictionsCount(); @Override long getValueHitsCount(); @Override double getValueHitsRatio(); @Override long getValueEvictionsCount(); }
CacheValueDictionary extends ValueDictionaryBase implements ManageableCacheDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value != null) { _id2node_cache.remove(ByteBuffer.wrap(getID(value, p))); _node2id_cache.remove(value); _decoratee.removeValue(value, p); } } CacheValueDictionary(
			final String id, 
			final ITopLevelDictionary decoratee, 
			final int idCacheSize, 
			final int valueCacheSize, 			
			final boolean isFirstLevelCache); @Override void removeValue(final Value value, final boolean p); @Override byte[] compose(final byte[] id1, final byte[] id2); @Override byte[] compose(final byte[] id1, final byte[] id2, final byte[] id3); @Override byte[][] decompose(final byte[] compositeId); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override int getIdCacheMaxSize(); @Override int getValueCacheMaxSize(); @Override int getCachedIdentifiersCount(); @Override int getCachedValuesCount(); @Override boolean isCumulativeCache(); @Override long getIdHitsCount(); @Override double getIdHitsRatio(); @Override long getIdEvictionsCount(); @Override long getValueHitsCount(); @Override double getValueHitsRatio(); @Override long getValueEvictionsCount();  }