Uses of Class
com.google.common.collect.ImmutableTable
Packages that use ImmutableTable
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableTable in com.google.common.collect
Methods in com.google.common.collect that return ImmutableTableModifier and TypeMethodDescriptionImmutableTable.Builder.build()Returns a newly-created immutable table.ImmutableTable.Builder.buildOrThrow()Returns a newly-created immutable table, or throws an exception if duplicate key pairs were added.static <R,C, V> ImmutableTable <R, C, V> Returns an immutable copy of the provided table.static <R,C, V> ImmutableTable <R, C, V> ImmutableTable.of()Returns an empty immutable table.static <R,C, V> ImmutableTable <R, C, V> ImmutableTable.of(R rowKey, C columnKey, V value) Returns an immutable table containing a single cell.Methods in com.google.common.collect that return types with arguments of type ImmutableTableModifier and TypeMethodDescriptionstatic <T extends @Nullable Object, R, C, V>
Collector<T, ?, ImmutableTable<R, C, V>> ImmutableTable.toImmutableTable(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction) Returns aCollectorthat accumulates elements into anImmutableTable.static <T extends @Nullable Object, R, C, V>
Collector<T, ?, ImmutableTable<R, C, V>> ImmutableTable.toImmutableTable(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) Returns aCollectorthat accumulates elements into anImmutableTable.