Table.
See the Guava User Guide article on Tables.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | |
| pack-priv static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Function |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table. | immutableCell(R
the row key to be associated with the returned cell rowKey, C the column key to be associated with the returned cell columnKey, V the value to be associated with the returned cell value)Returns an immutable cell with the specified row key, column key, and value. |
| public static <R, C, V> Table | newCustomTable(Map<R, Map<C, V>>
place to store the mapping from each row key to its corresponding column key
/ value map backingMap, Supplier<? extends Map<C, V>> supplier of new, empty maps that will each hold all column key / value mappings
for a given row key factory)Creates a table that uses the specified backing map and factory. |
| public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table | Returns: a synchronized view of the specified tablethe table to be wrapped in a synchronized view table)Returns a synchronized (thread-safe) table backed by the specified table. |
| public static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, V, I extends Table | toTable(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, Supplier<I> tableSupplier)
Returns a |
| public static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, V, I extends Table | toTable(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction, Supplier<I> tableSupplier)
Returns a |
| public static <R extends @Nullable Object, C extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> Table | transformValues(Table<R, C, V1> fromTable, Function<? super V1, V2> function)
Returns a view of a table where each value is transformed by a function. |
| public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table | |
| private static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table. | |
| public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> RowSortedTable | Returns: an unmodifiable view of the specified tablethe row-sorted table for which an unmodifiable view is to be returned table)Returns an unmodifiable view of the specified row-sorted table. |
| public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table | unmodifiableTable(Table<? extends R, ? extends C, ? extends V> table)
Returns an unmodifiable view of the specified table. |
| private static <K extends @Nullable Object, V extends @Nullable Object> Function |