HashBasedTable

class HashBasedTable<R : Any, C : Any, V : Any> : AbstractTable<R, C, V>

Implementation of Table using hash tables.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val cellSet: Set<Table.Cell<R, C, V>>

Returns a set of all row key / column key / value triplets.

Link copied to clipboard
open override val columnKeySet: Set<C>

Returns a set of column keys that have one or more values in the table.

Link copied to clipboard
open override val columnMap: Map<C, Map<R, V>>

Returns a view that associates each column key with the corresponding map from row keys to values.

Link copied to clipboard
open override val rowKeySet: Set<R>

Returns a set of row keys that have one or more values in the table.

Link copied to clipboard
open override val rowMap: Map<R, Map<C, V>>

Returns a view that associates each row key with the corresponding map from column keys to values.

Link copied to clipboard
open override val size: Int

Returns the number of row key / column key / value mappings in the table.

Link copied to clipboard
open override val values: Collection<V>

Returns a collection of all values in the table.

Functions

Link copied to clipboard
open override fun clear()

Removes all mappings from the table.

Link copied to clipboard
open override fun column(columnKey: C): Map<R, V>

Returns a view of all mappings that have the given column key.

Link copied to clipboard
open override fun contains(rowKey: R, columnKey: C): Boolean

Returns true if the table contains a mapping with the specified row and column keys.

Link copied to clipboard
open override fun containsColumn(columnKey: C): Boolean

Returns true if the table contains a mapping with the specified column key.

Link copied to clipboard
open override fun containsRow(rowKey: R): Boolean

Returns true if the table contains a mapping with the specified row key.

Link copied to clipboard
open override fun containsValue(value: V): Boolean

Returns true if the table contains the specified value.

Link copied to clipboard
open override fun get(rowKey: R, columnKey: C): V?

Returns the value corresponding to the given row and column keys, or null if no such mapping exists.

Link copied to clipboard
open override fun isEmpty(): Boolean

Returns true if the table contains no mappings.

Link copied to clipboard
open override fun put(rowKey: R, columnKey: C, value: V): V?

Associates the specified value with the specified keys.

Link copied to clipboard
open override fun putAll(table: Table<R, C, V>)

Adds all mappings from the specified table to this table.

Link copied to clipboard
open override fun remove(rowKey: R, columnKey: C): V?

Removes the mapping, if any, associated with the given keys.

Link copied to clipboard
open override fun removeColumn(columnKey: C): Boolean

Removes all mappings that have the given column key.

Link copied to clipboard
open override fun removeRow(rowKey: R): Boolean

Removes all mappings that have the given row key.

Link copied to clipboard
open override fun row(rowKey: R): Map<C, V>

Returns a view of all mappings that have the given row key.