interface StringValues
Provides data structure for associating a String with a List of Strings
abstract val caseInsensitiveName: Boolean
Specifies if map has case-sensitive or case-insensitive names |
open operator fun contains(name: String): Boolean
Checks if the given name exists in the map open fun contains(name: String, value: String): Boolean
|
|
abstract fun entries(): Set<Entry<String, List<String>>>
Gets all entries from the map |
|
open fun forEach(body: (String, List<String>) -> Unit): Unit
Iterates over all entries in this map and calls body for each pair |
|
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 |
|
abstract fun getAll(name: String): List<String>?
Gets all values associated with the name, or null if the name is not present |
|
abstract fun isEmpty(): Boolean
Checks if this map is empty |
|
abstract fun names(): Set<String>
Gets all names from the map |
val Empty: StringValues
Empty StringValues instance |
fun build(caseInsensitiveName: Boolean = false, builder: StringValuesBuilder.() -> Unit): StringValues
Builds a StringValues instance with the given builder function |
fun StringValues.filter(keepEmpty: Boolean = false, predicate: (String, String) -> Boolean): StringValues
Create a new instance of StringValues filtered by the specified predicate |
|
fun StringValues.flattenEntries(): List<Pair<String, String>>
Copy values to a list of pairs |
|
fun StringValues.flattenForEach(block: (String, String) -> Unit): Unit
Invoke block function for every value pair |
|
fun StringValues.toMap(): Map<String, List<String>>
Copy values to a new independent map |
open class StringValuesImpl : StringValues |
|
open class StringValuesSingleImpl : StringValues |