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> Serializable
- Enclosing class:
Tables
private 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
FieldsFields inherited from class com.google.common.collect.Tables.UnmodifiableTable
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionUnmodifiableRowSortedMap
(RowSortedTable<R, ? extends C, ? extends V> delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected RowSortedTable
<R, C, V> delegate()
Returns the backing delegate instance that methods are forwarded to.Returns a set of row keys that have one or more values in the table.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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
UnmodifiableRowSortedMap
-
-
Method Details
-
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
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()
. -
rowKeySet
Description copied from interface:Table
Returns a set of row keys that have one or more values in the table. Changes to the set will update the underlying table, and vice versa.
-