public class StringValuesKt
| Modifier and Type | Method and Description |
|---|---|
static StringValuesBuilder |
appendAll(StringValuesBuilder $receiver,
StringValuesBuilder builder)
Append all values from the specified builder
|
static void |
appendFiltered(StringValuesBuilder $receiver,
StringValues source,
boolean keepEmpty,
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,java.lang.Boolean> predicate)
Append values from source filtering values by the specified predicate
|
static StringValues |
filter(StringValues $receiver,
boolean keepEmpty,
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,java.lang.Boolean> predicate)
Create a new instance of
interface StringValues filtered by the specified predicate |
static java.util.List<kotlin.Pair> |
flattenEntries(StringValues $receiver)
Copy values to a list of pairs
|
static void |
flattenForEach(StringValues $receiver,
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,kotlin.Unit> block)
Invoke block function for every value pair
|
static java.util.Map<java.lang.String,java.util.List> |
toMap(StringValues $receiver)
Copy values to a new independent map
|
static StringValues |
valuesOf(kotlin.Pair[] pairs,
boolean caseInsensitiveKey)
Build an instance of
interface StringValues from a vararg list of pairs |
static StringValues |
valuesOf(java.lang.String name,
java.lang.String value,
boolean caseInsensitiveKey)
Build an instance of
interface StringValues from a single pair |
static StringValues |
valuesOf(java.lang.String name,
java.util.List<java.lang.String> values,
boolean caseInsensitiveKey)
Build an instance of
interface StringValues with a single name and multiple values |
static StringValues |
valuesOf()
Build an empty
interface StringValues instance. |
static StringValues |
valuesOf(java.util.Map<java.lang.String,? extends java.lang.Iterable<java.lang.String>> map,
boolean caseInsensitiveKey)
Build an instance of
interface StringValues from the specified map |
public static StringValues valuesOf(kotlin.Pair[] pairs, boolean caseInsensitiveKey)
Build an instance of interface StringValues from a vararg list of pairs
interface StringValuespublic static StringValues valuesOf(java.lang.String name, java.lang.String value, boolean caseInsensitiveKey)
Build an instance of interface StringValues from a single pair
interface StringValuespublic static StringValues valuesOf(java.lang.String name, java.util.List<java.lang.String> values, boolean caseInsensitiveKey)
Build an instance of interface StringValues with a single name and multiple values
interface StringValuespublic static StringValues valuesOf()
Build an empty interface StringValues instance.
interface StringValuespublic static StringValues valuesOf(java.util.Map<java.lang.String,? extends java.lang.Iterable<java.lang.String>> map, boolean caseInsensitiveKey)
Build an instance of interface StringValues from the specified map
interface StringValuespublic static java.util.Map<java.lang.String,java.util.List> toMap(StringValues $receiver)
Copy values to a new independent map
public static java.util.List<kotlin.Pair> flattenEntries(StringValues $receiver)
Copy values to a list of pairs
public static void flattenForEach(StringValues $receiver, kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,kotlin.Unit> block)
Invoke block function for every value pair
public static StringValues filter(StringValues $receiver, boolean keepEmpty, kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,java.lang.Boolean> predicate)
Create a new instance of interface StringValues filtered by the specified predicate
keepEmpty - when true will keep empty lists otherwise keys with no values will be discardedinterface StringValuespublic static void appendFiltered(StringValuesBuilder $receiver, StringValues source, boolean keepEmpty, kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,java.lang.Boolean> predicate)
Append values from source filtering values by the specified predicate
keepEmpty - when true will keep empty lists otherwise keys with no values will be discardedpublic static StringValuesBuilder appendAll(StringValuesBuilder $receiver, StringValuesBuilder builder)
Append all values from the specified builder