MutableTable

interface MutableTable<R : Any, C : Any, V : Any> : Table<R, C, V> (source)

A mutable table that maps a pair of keys (row key, column key) to a value.

Parameters

R

the type of row keys

C

the type of column keys

V

the type of values

Inheritors

Functions

Link copied to clipboard
abstract fun clear()

Removes all mappings from the table.

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

Associates the specified value with the specified keys.

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

Adds all mappings from the specified table to this table.

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

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

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

Removes all mappings that have the given column key.

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

Removes all mappings that have the given row key.