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 via get(Object) or remove(Object).
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class com.google.common.collect.ForwardingMap |
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, size, values |
| Methods inherited from class com.google.common.collect.ForwardingObject |
toString |
MapListener
public MapListener(Map<K,V> target)
getSeenKeys
public Set<K> getSeenKeys()
get
public V get(Object key)
- Specified by:
get in interface Map<K,V>- Overrides:
get in class com.google.common.collect.ForwardingMap<K,V>
remove
public V remove(Object key)
- Specified by:
remove in interface Map<K,V>- Overrides:
remove in class com.google.common.collect.ForwardingMap<K,V>
delegate
protected Map<K,V> delegate()
- Overrides:
delegate in class com.google.common.collect.ForwardingMap<K,V>
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.