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>,java.io.Serializable
- Direct Known Subclasses:
DenseImmutableTable,SparseImmutableTable
@GwtCompatible abstract class RegularImmutableTable<R,C,V> extends ImmutableTable<R,C,V>
An implementation ofImmutableTableholding an arbitrary number of cells.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classRegularImmutableTable.CellSetprivate classRegularImmutableTable.Values-
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 Constructor Description RegularImmutableTable()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidcheckNoDuplicate(R rowKey, C columnKey, V existingValue, V newValue)(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)(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)-
Methods inherited from class com.google.common.collect.ImmutableTable
builder, cellIterator, cellOf, cellSet, cellSpliterator, clear, column, columnKeySet, columnMap, contains, containsValue, copyOf, createSerializedForm, of, of, put, putAll, remove, row, rowKeySet, rowMap, toImmutableTable, toImmutableTable, values, valuesIterator, writeReplace
-
Methods inherited from class com.google.common.collect.AbstractTable
containsColumn, containsRow, equals, get, hashCode, isEmpty, toString, valuesSpliterator
-
-
-
-
Method Detail
-
getCell
abstract Table.Cell<R,C,V> getCell(int iterationIndex)
-
createCellSet
final ImmutableSet<Table.Cell<R,C,V>> createCellSet()
- Specified by:
createCellSetin classImmutableTable<R,C,V>
-
getValue
abstract V getValue(int iterationIndex)
-
createValues
final ImmutableCollection<V> createValues()
- Specified by:
createValuesin classImmutableTable<R,C,V>
-
forCells
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)
-
forCells
static <R,C,V> RegularImmutableTable<R,C,V> forCells(java.lang.Iterable<Table.Cell<R,C,V>> cells)
-
forCellsInternal
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)
-
forOrderedComponents
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.
-
-