K - key typeV - value typeprivate static class CompatibleGuava11.AsMapView<K,V> extends CompatibleGuava11.ImprovedAbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
(package private) com.google.common.base.Function<? super K,V> |
function |
private Set<K> |
set |
| Constructor and Description |
|---|
AsMapView(Set<K> set,
com.google.common.base.Function<? super K,V> function) |
| Modifier and Type | Method and Description |
|---|---|
(package private) Set<K> |
backingSet() |
void |
clear() |
boolean |
containsKey(Object key) |
protected Set<Map.Entry<K,V>> |
createEntrySet()
Creates the entry set to be returned by
CompatibleGuava11.ImprovedAbstractMap.entrySet(). |
V |
get(Object key) |
Set<K> |
keySet() |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
entrySetclone, containsValue, equals, hashCode, isEmpty, put, putAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Collection<V> values()
public int size()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public void clear()
protected Set<Map.Entry<K,V>> createEntrySet()
CompatibleGuava11.ImprovedAbstractMapCompatibleGuava11.ImprovedAbstractMap.entrySet(). This method
is invoked at most once on a given map, at the time when entrySet
is first called.createEntrySet in class CompatibleGuava11.ImprovedAbstractMap<K,V>Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.