namespace Table
A type-invariant immutable Table of row key type R, column key type C, and value type V. In the Table, a combination of a row and column key has exactly one value. See the Table documentation and the Table API documentation
Companion interface: Table<R,C,V>
Interfaces
| Name | Description |
|---|---|
Table.Builder<R,C,V> | A mutable Table builder used to efficiently create new immutable instances. See the Table documentation and the Table.Builder API documentation |
Table.Context<UR,UC> | A context instance for Table implementations that acts as a factory for every instance of this type of collection. |
Table.NonEmpty<R,C,V> | A non-empty type-invariant immutable Table of row key type R, column key type C, and value type V. In the Table, a combination of a row and column key has exactly one value. See the Table documentation and the Table API documentation |
Table.Types | Utility interface that provides higher-kinded types for this collection. |
Static Methods
createContext
Returns a new Table context instance based on the given options.
createContextoptions.Definition
createContext<UR, UC>(options: {
rowContext: RMap.Context<UR>;
columnContext: RMap.Context<UC>;
}): Table.Context<UR, UC>;
Type parameters
| Name | Description |
|---|---|
| UR | the upper row key type for which the context can create instances |
| UC | the upper column key type for which the context can create instances |
Parameters
| Name | Type | Description |
|---|---|---|
options | {rowContext: RMap.Context<UR>;columnContext: RMap.Context<UC>;} | an object containing the following properties: - rowContext: the map context to use to map row keys to columns - columnContext: the map context to use to map column keys to values |