Package com.google.common.collect
Class RegularImmutableTable<R,C,V>
java.lang.Object
com.google.common.collect.AbstractTable<R,C,V>
com.google.common.collect.ImmutableTable<R,C,V>
com.google.common.collect.RegularImmutableTable<R,C,V>
- All Implemented Interfaces:
Table<R,,C, V> Serializable
- Direct Known Subclasses:
DenseImmutableTable,SparseImmutableTable
An implementation of
ImmutableTable holding an arbitrary number of cells.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate final classNested classes/interfaces inherited from class com.google.common.collect.ImmutableTable
ImmutableTable.Builder<R,C, V>, ImmutableTable.SerializedForm Nested classes/interfaces inherited from interface com.google.common.collect.Table
Table.Cell<R,C, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidcheckNoDuplicate(R rowKey, C columnKey, V existingValue, V newValue) (package private) final ImmutableSet<Table.Cell<R, C, V>> (package private) final ImmutableCollection<V> (package private) static <R,C, V> RegularImmutableTable <R, C, V> forCells(Iterable<Table.Cell<R, C, V>> cells) (package private) static <R,C, V> RegularImmutableTable <R, C, V> forCells(List<Table.Cell<R, C, V>> cells, Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) private static <R,C, V> RegularImmutableTable <R, C, V> forCellsInternal(Iterable<Table.Cell<R, C, V>> cells, Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) (package private) static <R,C, V> RegularImmutableTable <R, C, V> forOrderedComponents(ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) A factory that chooses the most space-efficient representation of the table.(package private) abstract Table.Cell<R, C, V> getCell(int iterationIndex) (package private) abstract VgetValue(int iterationIndex) (package private) abstract ObjectMethods inherited from class com.google.common.collect.ImmutableTable
builder, cellIterator, cellOf, cellSet, cellSpliterator, clear, column, columnKeySet, columnMap, contains, containsValue, copyOf, copyOf, of, of, put, putAll, remove, row, rowKeySet, rowMap, toImmutableTable, toImmutableTable, values, valuesIteratorMethods inherited from class com.google.common.collect.AbstractTable
containsColumn, containsRow, equals, get, hashCode, isEmpty, toString, valuesSpliterator
-
Constructor Details
-
RegularImmutableTable
RegularImmutableTable()
-
-
Method Details
-
getCell
-
createCellSet
- Specified by:
createCellSetin classImmutableTable<R,C, V>
-
getValue
-
createValues
- Specified by:
createValuesin classImmutableTable<R,C, V>
-
forCells
static <R,C, RegularImmutableTable<R,V> C, forCellsV> (List<Table.Cell<R, C, V>> cells, @CheckForNull Comparator<? super R> rowComparator, @CheckForNull Comparator<? super C> columnComparator) -
forCells
-
forCellsInternal
private static <R,C, RegularImmutableTable<R,V> C, forCellsInternalV> (Iterable<Table.Cell<R, C, V>> cells, @CheckForNull Comparator<? super R> rowComparator, @CheckForNull Comparator<? super C> columnComparator) -
forOrderedComponents
static <R,C, RegularImmutableTable<R,V> C, forOrderedComponentsV> (ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) A factory that chooses the most space-efficient representation of the table. -
checkNoDuplicate
- Throws:
IllegalArgumentException- ifexistingValueis not null.
-
writeReplace
- Specified by:
writeReplacein classImmutableTable<R,C, V>
-