Package com.google.common.collect
Class Tables.UnmodifiableRowSortedMap<R,C,V>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingTable<R,C,V>
-
- com.google.common.collect.Tables.UnmodifiableTable<R,C,V>
-
- com.google.common.collect.Tables.UnmodifiableRowSortedMap<R,C,V>
-
- All Implemented Interfaces:
RowSortedTable<R,C,V>
,Table<R,C,V>
,java.io.Serializable
- Enclosing class:
- Tables
static final class Tables.UnmodifiableRowSortedMap<R,C,V> extends Tables.UnmodifiableTable<R,C,V> implements RowSortedTable<R,C,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.common.collect.Table
Table.Cell<R,C,V>
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.google.common.collect.Tables.UnmodifiableTable
delegate
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableRowSortedMap(RowSortedTable<R,? extends C,? extends V> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RowSortedTable<R,C,V>
delegate()
Returns the backing delegate instance that methods are forwarded to.java.util.SortedSet<R>
rowKeySet()
Returns a set of row keys that have one or more values in the table.java.util.SortedMap<R,java.util.Map<C,V>>
rowMap()
Returns a view that associates each row key with the corresponding map from column keys to values.-
Methods inherited from class com.google.common.collect.Tables.UnmodifiableTable
cellSet, clear, column, columnKeySet, columnMap, put, putAll, remove, row, values
-
Methods inherited from class com.google.common.collect.ForwardingTable
contains, containsColumn, containsRow, containsValue, equals, get, hashCode, isEmpty, size
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.Table
cellSet, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, row, size, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnmodifiableRowSortedMap
public UnmodifiableRowSortedMap(RowSortedTable<R,? extends C,? extends V> delegate)
-
-
Method Detail
-
delegate
protected RowSortedTable<R,C,V> delegate()
Description copied from class:ForwardingObject
Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.- Overrides:
delegate
in classTables.UnmodifiableTable<R,C,V>
-
rowMap
public java.util.SortedMap<R,java.util.Map<C,V>> rowMap()
Description copied from interface:Table
Returns a view that associates each row key with the corresponding map from column keys to values. Changes to the returned map will update this table. The returned map does not supportput()
orputAll()
, orsetValue()
on its entries.In contrast, the maps returned by
rowMap().get()
have the same behavior as those returned byTable.row(R)
. Those maps may supportsetValue()
,put()
, andputAll()
.
-
-