ValuesMap

interface ValuesMap<T>

Mapping of String to a List of T values

Properties

Link copied to clipboard

Flag indicating if this map compares keys ignoring case

Functions

Link copied to clipboard
abstract operator fun contains(name: String): Boolean

Checks if the given name exists in the map

open fun contains(name: String, value: T): Boolean

Checks if the given name and value pair exists in the map

Link copied to clipboard
abstract fun entries(): Set<Map.Entry<String, List<T>>>

Gets all entries from the map

Link copied to clipboard
open fun forEach(body: (String, List<T>) -> Unit)

Iterates over all entries in this map and calls body for each pair

Link copied to clipboard
open operator fun get(name: String): T?

Gets first value from the list of values associated with a name, or null if the name is not present

Link copied to clipboard
abstract fun getAll(name: String): List<T>?

Gets all values associated with the name, or null if the name is not present

Link copied to clipboard
abstract fun isEmpty(): Boolean

Checks if this map is empty

Link copied to clipboard
abstract fun names(): Set<String>

Gets all names from the map