Package com.google.common.collect
Class StandardTable.Column
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.common.collect.Maps.ViewCachingAbstractMap<R,V>
-
- com.google.common.collect.StandardTable.Column
-
- All Implemented Interfaces:
java.util.Map<R,V>
- Enclosing class:
- StandardTable<R,C,V>
private class StandardTable.Column extends Maps.ViewCachingAbstractMap<R,V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classStandardTable.Column.EntrySetprivate classStandardTable.Column.EntrySetIteratorprivate classStandardTable.Column.KeySetprivate classStandardTable.Column.Values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(java.lang.Object key)(package private) java.util.Set<java.util.Map.Entry<R,V>>createEntrySet()Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().(package private) java.util.Set<R>createKeySet()(package private) java.util.Collection<V>createValues()Vget(java.lang.Object key)Vput(R key, V value)Vremove(java.lang.Object key)(package private) booleanremoveFromColumnIf(Predicate<? super java.util.Map.Entry<R,V>> predicate)Removes allColumnmappings whose row key and value satisfy the given predicate.-
Methods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
entrySet, keySet, values
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, putAll, size, toString
-
-
-
-
Field Detail
-
columnKey
final C columnKey
-
-
Constructor Detail
-
Column
Column(C columnKey)
-
-
Method Detail
-
get
public V get(java.lang.Object key)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
remove
public V remove(java.lang.Object key)
-
removeFromColumnIf
boolean removeFromColumnIf(Predicate<? super java.util.Map.Entry<R,V>> predicate)
Removes allColumnmappings whose row key and value satisfy the given predicate.
-
createEntrySet
java.util.Set<java.util.Map.Entry<R,V>> createEntrySet()
Description copied from class:Maps.ViewCachingAbstractMapCreates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet(). This method is invoked at most once on a given map, at the time whenentrySetis first called.- Specified by:
createEntrySetin classMaps.ViewCachingAbstractMap<R,V>
-
createKeySet
java.util.Set<R> createKeySet()
- Overrides:
createKeySetin classMaps.ViewCachingAbstractMap<R,V>
-
createValues
java.util.Collection<V> createValues()
- Overrides:
createValuesin classMaps.ViewCachingAbstractMap<R,V>
-
-