StringValues

interface StringValues

Provides data structure for associating a String with a List of Strings

Types

Link copied to clipboard
object Companion

Functions

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

Checks if the given name exists in the map

open fun contains(name: String, value: String): 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<String>>>

Gets all entries from the map

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

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

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

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<String>?

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

Properties

Link copied to clipboard

Specifies if map has case-sensitive or case-insensitive names

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun StringValues.filter(keepEmpty: Boolean = false, predicate: (String, String) -> Boolean): StringValues

Create a new instance of StringValues filtered by the specified predicate

Link copied to clipboard

Copy values to a list of pairs

Link copied to clipboard

Invoke block function for every value pair

Link copied to clipboard

Copy values to a new independent map