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 class
StandardTable.Column.EntrySet
private class
StandardTable.Column.EntrySetIterator
private class
StandardTable.Column.KeySet
private class
StandardTable.Column.Values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(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()
V
get(java.lang.Object key)
V
put(R key, V value)
V
remove(java.lang.Object key)
(package private) boolean
removeFromColumnIf(Predicate<? super java.util.Map.Entry<R,V>> predicate)
Removes allColumn
mappings 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 allColumn
mappings 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.ViewCachingAbstractMap
Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet()
. This method is invoked at most once on a given map, at the time whenentrySet
is first called.- Specified by:
createEntrySet
in classMaps.ViewCachingAbstractMap<R,V>
-
createKeySet
java.util.Set<R> createKeySet()
- Overrides:
createKeySet
in classMaps.ViewCachingAbstractMap<R,V>
-
createValues
java.util.Collection<V> createValues()
- Overrides:
createValues
in classMaps.ViewCachingAbstractMap<R,V>
-
-