Class Tables.UnmodifiableRowSortedMap<R,​C,​V>

    • 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 as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
        Overrides:
        delegate in class Tables.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 support put() or putAll(), or setValue() on its entries.

        In contrast, the maps returned by rowMap().get() have the same behavior as those returned by Table.row(R). Those maps may support setValue(), put(), and putAll().

        Specified by:
        rowMap in interface RowSortedTable<R,​C,​V>
        Specified by:
        rowMap in interface Table<R,​C,​V>
        Overrides:
        rowMap in class Tables.UnmodifiableTable<R,​C,​V>
        Returns:
        a map view from each row key to a secondary map from column keys to values
      • rowKeySet

        public java.util.SortedSet<R> 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.
        Specified by:
        rowKeySet in interface RowSortedTable<R,​C,​V>
        Specified by:
        rowKeySet in interface Table<R,​C,​V>
        Overrides:
        rowKeySet in class Tables.UnmodifiableTable<R,​C,​V>
        Returns:
        set of row keys