Interface RowSortedTable<R extends @Nullable java.lang.Object,​C extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>

  • All Superinterfaces:
    Table<R,​C,​V>
    All Known Implementing Classes:
    TreeBasedTable

    @GwtCompatible
    public interface RowSortedTable<R extends @Nullable java.lang.Object,​C extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
    extends Table<R,​C,​V>
    Interface that extends Table and whose rows are sorted.

    The rowKeySet() method returns a SortedSet and the rowMap() method returns a SortedMap, instead of the Set and Map specified by the Table interface.

    Since:
    8.0
    Author:
    Warren Dukes
    • Method Detail

      • rowKeySet

        java.util.SortedSet<RrowKeySet()
        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.

        This method returns a SortedSet, instead of the Set specified in the Table interface.

        Specified by:
        rowKeySet in interface Table<R extends @Nullable java.lang.Object,​C extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
        Returns:
        set of row keys
      • rowMap

        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. 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().

        This method returns a SortedMap, instead of the Map specified in the Table interface.

        Specified by:
        rowMap in interface Table<R extends @Nullable java.lang.Object,​C extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
        Returns:
        a map view from each row key to a secondary map from column keys to values