@GwtCompatible abstract class RegularImmutableTable<R,C,V> extends ImmutableTable<R,C,V>
ImmutableTable
holding an arbitrary number of
cells.Modifier and Type | Class and Description |
---|---|
private class |
RegularImmutableTable.CellSet |
private class |
RegularImmutableTable.Values |
ImmutableTable.Builder<R,C,V>
Table.Cell<R,C,V>
Constructor and Description |
---|
RegularImmutableTable() |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet<Table.Cell<R,C,V>> |
createCellSet() |
(package private) ImmutableCollection<V> |
createValues() |
(package private) static <R,C,V> RegularImmutableTable<R,C,V> |
forCells(java.lang.Iterable<Table.Cell<R,C,V>> cells) |
(package private) static <R,C,V> RegularImmutableTable<R,C,V> |
forCells(java.util.List<Table.Cell<R,C,V>> cells,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super C> columnComparator) |
private static <R,C,V> RegularImmutableTable<R,C,V> |
forCellsInternal(java.lang.Iterable<Table.Cell<R,C,V>> cells,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super C> columnComparator)
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) |
builder, cellIterator, cellOf, cellSet, clear, column, columnKeySet, columnMap, contains, containsValue, copyOf, of, of, put, putAll, remove, row, rowKeySet, rowMap, values, valuesIterator
containsColumn, containsRow, equals, get, hashCode, isEmpty, toString
abstract Table.Cell<R,C,V> getCell(int iterationIndex)
final ImmutableSet<Table.Cell<R,C,V>> createCellSet()
createCellSet
in class ImmutableTable<R,C,V>
abstract V getValue(int iterationIndex)
final ImmutableCollection<V> createValues()
createValues
in class ImmutableTable<R,C,V>
static <R,C,V> RegularImmutableTable<R,C,V> forCells(java.util.List<Table.Cell<R,C,V>> cells, @Nullable java.util.Comparator<? super R> rowComparator, @Nullable java.util.Comparator<? super C> columnComparator)
static <R,C,V> RegularImmutableTable<R,C,V> forCells(java.lang.Iterable<Table.Cell<R,C,V>> cells)
private static final <R,C,V> RegularImmutableTable<R,C,V> forCellsInternal(java.lang.Iterable<Table.Cell<R,C,V>> cells, @Nullable java.util.Comparator<? super R> rowComparator, @Nullable java.util.Comparator<? super C> columnComparator)