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 class
private final class
Nested 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 void
checkNoDuplicate
(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 V
getValue
(int iterationIndex) (package private) abstract Object
Methods 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, valuesIterator
Methods 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:
createCellSet
in classImmutableTable<R,
C, V>
-
getValue
-
createValues
- Specified by:
createValues
in 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
- ifexistingValue
is not null.
-
writeReplace
- Specified by:
writeReplace
in classImmutableTable<R,
C, V>
-