StringValuesSingleImpl

open class StringValuesSingleImpl(val caseInsensitiveName: Boolean, val name: String, val values: List<String>) : StringValues

Constructors

Link copied to clipboard
constructor(caseInsensitiveName: Boolean, name: String, values: List<String>)

Properties

Link copied to clipboard
open override val caseInsensitiveName: Boolean

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

Link copied to clipboard
Link copied to clipboard

Functions

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

Checks if the given name exists in the map

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

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

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

Gets all entries from the map

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
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
open override 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 override 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
open override 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
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean

Checks if this map is empty

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

Gets all names from the map

Link copied to clipboard

Copy values to a new independent map

Link copied to clipboard
open override fun toString(): String