Class UtilCacheTests.Listener<K,V>
- java.lang.Object
-
- org.apache.ofbiz.base.util.cache.test.UtilCacheTests.Listener<K,V>
-
- All Implemented Interfaces:
CacheListener<K,V>
- Enclosing class:
- UtilCacheTests
protected static class UtilCacheTests.Listener<K,V> extends java.lang.Object implements CacheListener<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<K,java.util.Set<UtilCacheTests.Change<V>>>
changeMap
-
Constructor Summary
Constructors Modifier Constructor Description protected
Listener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
noteKeyAddition(UtilCache<K,V> cache, K key, V newValue)
void
noteKeyRemoval(UtilCache<K,V> cache, K key, V oldValue)
void
noteKeyUpdate(UtilCache<K,V> cache, K key, V newValue, V oldValue)
-
-
-
Field Detail
-
changeMap
protected java.util.Map<K,java.util.Set<UtilCacheTests.Change<V>>> changeMap
-
-
Method Detail
-
noteKeyRemoval
public void noteKeyRemoval(UtilCache<K,V> cache, K key, V oldValue)
- Specified by:
noteKeyRemoval
in interfaceCacheListener<K,V>
-
noteKeyAddition
public void noteKeyAddition(UtilCache<K,V> cache, K key, V newValue)
- Specified by:
noteKeyAddition
in interfaceCacheListener<K,V>
-
noteKeyUpdate
public void noteKeyUpdate(UtilCache<K,V> cache, K key, V newValue, V oldValue)
- Specified by:
noteKeyUpdate
in interfaceCacheListener<K,V>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-