EnumValueMap

open class EnumValueMap : MapBase

A map from key type string to value type {@link com.sap.cloud.mobile.kotlin.odata.EnumValue}.

Constructors

Link copied to clipboard
constructor()
constructor(capacity: Int)

Construct a new map with {@link com.sap.cloud.mobile.kotlin.odata.EnumValueMap#size EnumValueMap.size} of zero and optional initial capacity. A map can expand in size beyond its initial capacity, but best performance will be obtained if the initial capacity is close to (and not less than) the map's maximum size.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
open class Entry

A key/value pair for map entries.

Link copied to clipboard

A list of item type {@link com.sap.cloud.mobile.kotlin.odata.EnumValueMap.Entry}.

Properties

Link copied to clipboard
open override val untypedMap: UntypedMap

Functions

Link copied to clipboard
open fun add(value: EnumValue)

Add an entry to this map using value.name as the entry key and value as the entry value.

Link copied to clipboard
open fun copy(): EnumValueMap

Return a shallow copy of this map.

Link copied to clipboard
open fun delete(key: String): Boolean

For internal use only.

Link copied to clipboard

Return a list of the entries (key/value pairs) in this map.

Link copied to clipboard
open fun get(key: String): EnumValue?

Return (nullable) The value from the entry with the specified key (if found), otherwise null.

Link copied to clipboard
open fun getRequired(key: String): EnumValue

Return the value from the entry with the specified key (if found).

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.MissingEntryException} (fatal) if no entry is found for the specified key.

Link copied to clipboard
open fun has(key: String): Boolean

Return true if this map has an entry with the specified key, otherwise false.

Link copied to clipboard
open fun keys(): StringList

Return a list of the entry keys in this map.

Link copied to clipboard
open fun merge(from: EnumValueMap)

Merge all the entries of from to this map, replacing any entry for which the key already exists in this map.

Link copied to clipboard
open fun remove(key: String): Boolean

Remove the entry with the specified key (if found).

Link copied to clipboard
open fun set(key: String, value: EnumValue)

Add or replace an entry with the specified key and value.

Link copied to clipboard
open fun setThis(key: String, value: EnumValue): EnumValueMap

Add or replace an entry with the specified key and value.

Link copied to clipboard

Return a sorted list of the entries in this map, using the ordering of this.keys().

Link copied to clipboard

Return a sorted list of the keys in this map.

Link copied to clipboard

Return a sorted list of the values in this map.

Link copied to clipboard
open fun values(): EnumValueList

Return a list of the entry values in this map.