MultiMap

interface MultiMap<K, V>

Functions

Link copied to clipboard
abstract fun containsKey(key: Any?): Boolean

Returns true if this multimap contains a mapping for the specified key.

Link copied to clipboard
abstract fun forEach(block: (K, Collection<V>?) -> Unit)
Link copied to clipboard
abstract fun forEachIndexed(block: (index: Int, K, Collection<V>?) -> Unit)
Link copied to clipboard
abstract operator fun get(key: K?): MutableCollection<V>?

Returns the Collection of values to which the specified key is mapped, or null if this multimap contains no mapping for the key.

Link copied to clipboard
abstract fun size(): Int

Gets the total size of all elements within this multimap.

Properties

Link copied to clipboard
abstract val entries: ImmutableSet<Map.Entry<K, Collection<V>>>

Returns a Set view of the mappings contained in this multimap.

Link copied to clipboard
abstract val isEmpty: Boolean

Returns true if this multimap contains no key-value pairs.

Link copied to clipboard
abstract val keys: ImmutableSet<K>

Returns a Set view of the keys contained in this multimap.

Link copied to clipboard
abstract val size: Int

Returns the number of key-value pairs in this multimap.

Link copied to clipboard
abstract val values: ImmutableSet<Collection<V>>

Returns a Collection view of the values present in this multimap.

Inheritors

Link copied to clipboard
Link copied to clipboard