Package org.apache.solr.util
Class MapListener<K,V>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingMap<K,V>
-
- org.apache.solr.util.MapListener<K,V>
-
- All Implemented Interfaces:
Map<K,V>
public class MapListener<K,V> extends com.google.common.collect.ForwardingMap<K,V>
Wraps another map, keeping track of each key that was seen viaget(Object)
orremove(Object)
.
-
-
Constructor Summary
Constructors Constructor Description MapListener(Map<K,V> target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<K,V>
delegate()
V
get(Object key)
Set<K>
getSeenKeys()
V
remove(Object key)
-
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-