public class StringValuesSingleImpl implements StringValues
StringValues.Companion, StringValues.DefaultImplsCompanion| Constructor and Description |
|---|
StringValuesSingleImpl(boolean caseInsensitiveName,
java.lang.String name,
java.util.List<java.lang.String> values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String name)
Checks if the given name exists in the map
|
boolean |
contains(java.lang.String name,
java.lang.String value)
Checks if the given name and value pair exists in the map
|
java.util.Set<java.util.Map.Entry> |
entries()
Gets all entries from the map
|
boolean |
equals(java.lang.Object other) |
void |
forEach(kotlin.jvm.functions.Function2<? super java.lang.String,? super java.util.List<java.lang.String>,kotlin.Unit> body)
Iterates over all entries in this map and calls body for each pair
|
java.lang.String |
get(java.lang.String name)
Gets first value from the list of values associated with a name, or null if the name is not present
|
java.util.List<java.lang.String> |
getAll(java.lang.String name)
Gets all values associated with the name, or null if the name is not present
|
boolean |
getCaseInsensitiveName()
Specifies if map has case-sensitive or case-insensitive names
|
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getValues() |
int |
hashCode() |
boolean |
isEmpty()
Checks if this map is empty
|
java.util.Set<java.lang.String> |
names()
Gets all names from the map
|
java.lang.String |
toString() |
contains, contains, entries, forEach, get, getAll, getCaseInsensitiveName, isEmpty, namespublic StringValuesSingleImpl(boolean caseInsensitiveName,
java.lang.String name,
java.util.List<java.lang.String> values)
caseInsensitiveName - Specifies if map has case-sensitive or case-insensitive namespublic java.util.List<java.lang.String> getAll(java.lang.String name)
Gets all values associated with the name, or null if the name is not present
public java.util.Set<java.util.Map.Entry> entries()
Gets all entries from the map
public boolean isEmpty()
Checks if this map is empty
public java.util.Set<java.lang.String> names()
Gets all names from the map
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object other)
public void forEach(kotlin.jvm.functions.Function2<? super java.lang.String,? super java.util.List<java.lang.String>,kotlin.Unit> body)
Iterates over all entries in this map and calls body for each pair
Can be optimized in implementations
public java.lang.String get(java.lang.String name)
Gets first value from the list of values associated with a name, or null if the name is not present
public boolean contains(java.lang.String name)
Checks if the given name exists in the map
public boolean contains(java.lang.String name,
java.lang.String value)
Checks if the given name and value pair exists in the map
public boolean getCaseInsensitiveName()
Specifies if map has case-sensitive or case-insensitive names
public java.lang.String getName()
public java.util.List<java.lang.String> getValues()