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 ofImmutableTable
holding an arbitrary number of cells.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
RegularImmutableTable.CellSet
private class
RegularImmutableTable.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) 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 V
getValue(int iterationIndex)
-
Methods inherited from class com.google.common.collect.ImmutableTable
builder, cellIterator, cellOf, cellSet, clear, column, columnKeySet, columnMap, contains, containsValue, copyOf, createSerializedForm, of, of, put, putAll, remove, row, rowKeySet, rowMap, values, valuesIterator, writeReplace
-
Methods inherited from class com.google.common.collect.AbstractTable
containsColumn, containsRow, equals, get, hashCode, isEmpty, toString
-
-
-
-
Method Detail
-
getCell
abstract Table.Cell<R,C,V> getCell(int iterationIndex)
-
createCellSet
final ImmutableSet<Table.Cell<R,C,V>> createCellSet()
- Specified by:
createCellSet
in classImmutableTable<R,C,V>
-
getValue
abstract V getValue(int iterationIndex)
-
createValues
final ImmutableCollection<V> createValues()
- Specified by:
createValues
in classImmutableTable<R,C,V>
-
forCells
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)
-
forCells
static <R,C,V> RegularImmutableTable<R,C,V> forCells(java.lang.Iterable<Table.Cell<R,C,V>> cells)
-
forCellsInternal
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)
-
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.
-
-