RegularImmutableTable optimized for dense data.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private abstract static class | DenseImmutableTable.
An immutable map implementation backed by an indexed nullable array. |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final int[] | |
| private final int[] | |
| private final ImmutableMap | |
| private final ImmutableMap | |
| private final int[] | |
| private final ImmutableMap | |
| private final ImmutableMap | |
| private final @Nullable V[][] |
| Access | Constructor and Description |
|---|---|
| pack-priv | DenseImmutableTable(ImmutableList<Table.
|
| Modifier and Type | Method and Description |
|---|---|
| public ImmutableMap | columnMap()
Implements abstract com. Implements com. |
| public V | get(Object
key of row to search for rowKey, Object key of column to search for columnKey)Overrides com. Implements com. null if no such
mapping exists.
|
| pack-priv Table. | |
| pack-priv V | |
| public ImmutableMap | rowMap()
Implements abstract com. Implements com. |
| public int | size()
Implements com. |
| pack-priv Object |
| cellColumnIndices | back to summary |
|---|---|
private final int[] cellColumnIndices
| |
| cellRowIndices | back to summary |
|---|---|
private final int[] cellRowIndices
| |
| columnCounts | back to summary |
|---|---|
private final int[] columnCounts
| |
| columnKeyToIndex | back to summary |
|---|---|
| private final ImmutableMap<C, Integer> columnKeyToIndex | |
| columnMap | back to summary |
|---|---|
| private final ImmutableMap<C, ImmutableMap<R, V>> columnMap | |
| rowCounts | back to summary |
|---|---|
private final int[] rowCounts
| |
| rowKeyToIndex | back to summary |
|---|---|
| private final ImmutableMap<R, Integer> rowKeyToIndex | |
| rowMap | back to summary |
|---|---|
| private final ImmutableMap<R, ImmutableMap<C, V>> rowMap | |
| values | back to summary |
|---|---|
| private final @Nullable V[][] values Hides com.
| |
| DenseImmutableTable | back to summary |
|---|---|
| pack-priv DenseImmutableTable(ImmutableList<Table. | |
| columnMap | back to summary |
|---|---|
| public ImmutableMap Implements abstract com. Implements com. Doc from com. Returns a view that associates each column key with the corresponding map from row keys to
values. Changes to the returned map will update this table. The returned map does not support
In contrast, the maps returned by The value
| |
| get | back to summary |
|---|---|
| public V get(Object rowKey, Object columnKey) Overrides com. Implements com. Doc from com. Returns the value corresponding to the given row and column keys, or
| |
| getCell | back to summary |
|---|---|
| pack-priv Table. Implements abstract com.
| |
| getValue | back to summary |
|---|---|
| pack-priv V getValue(int index) Implements abstract com.
| |
| rowMap | back to summary |
|---|---|
| public ImmutableMap Implements abstract com. Implements com. Doc from com. Returns a view that associates each row key with the corresponding map from column keys to
values. Changes to the returned map will update this table. The returned map does not support
In contrast, the maps returned by The value
| |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Returns the number of row key / column key / value mappings in the table.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv V | getValue(int keyIndex)
Implements abstract com. |
| pack-priv boolean | |
| pack-priv ImmutableMap | keyToIndex()
Implements abstract com. |
| pack-priv Object | writeReplace()
Overrides com. |
| columnIndex | back to summary |
|---|---|
| private final int columnIndex | |
| Column | back to summary |
|---|---|
| pack-priv Column(int columnIndex) | |
| getValue | back to summary |
|---|---|
| pack-priv V getValue(int keyIndex) Implements abstract com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| keyToIndex | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableMap | getValue(int keyIndex)
Implements abstract com. |
| pack-priv boolean | |
| pack-priv ImmutableMap | keyToIndex()
Implements abstract com. |
| pack-priv Object | writeReplace()
Overrides com. |
| ColumnMap | back to summary |
|---|---|
| private ColumnMap() | |
| getValue | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| keyToIndex | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableSet | |
| pack-priv UnmodifiableIterator | entryIterator()
Implements abstract com. |
| public V | get(Object
the key whose associated value is to be returned key)Implements abstract com. Implements java. null if this map contains no mapping for the key.
|
| pack-priv K | |
| pack-priv abstract V | |
| private boolean | |
| pack-priv abstract ImmutableMap | |
| public int | |
| pack-priv Object | writeReplace()
Overrides com. |
| size | back to summary |
|---|---|
| private final int size | |
| ImmutableArrayMap | back to summary |
|---|---|
| pack-priv ImmutableArrayMap(int size) | |
| createKeySet | back to summary |
|---|---|
| pack-priv ImmutableSet Overrides com.
| |
| entryIterator | back to summary |
|---|---|
| pack-priv UnmodifiableIterator Implements abstract com.
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements abstract com. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| getKey | back to summary |
|---|---|
| pack-priv K getKey(int index) | |
| getValue | back to summary |
|---|---|
pack-priv abstract V getValue(int keyIndex)
| |
| isFull | back to summary |
|---|---|
| private boolean isFull() | |
| keyToIndex | back to summary |
|---|---|
| pack-priv abstract ImmutableMap | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv V | getValue(int keyIndex)
Implements abstract com. |
| pack-priv boolean | |
| pack-priv ImmutableMap | keyToIndex()
Implements abstract com. |
| pack-priv Object | writeReplace()
Overrides com. |
| rowIndex | back to summary |
|---|---|
| private final int rowIndex | |
| Row | back to summary |
|---|---|
| pack-priv Row(int rowIndex) | |
| getValue | back to summary |
|---|---|
| pack-priv V getValue(int keyIndex) Implements abstract com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| keyToIndex | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableMap | getValue(int keyIndex)
Implements abstract com. |
| pack-priv boolean | |
| pack-priv ImmutableMap | keyToIndex()
Implements abstract com. |
| pack-priv Object | writeReplace()
Overrides com. |
| RowMap | back to summary |
|---|---|
| private RowMap() | |
| getValue | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| keyToIndex | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |