IntMap

open class IntMap : MapBase

For internal use only.

Constructors

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

Construct a new map with {@link com.sap.cloud.mobile.kotlin.odata.IntMap#size IntMap.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.IntMap.Entry}.

Properties

Link copied to clipboard
open override val untypedMap: UntypedMap

Functions

Link copied to clipboard
open fun copy(): IntMap

Return a shallow copy of this map.

Link copied to clipboard
open override fun copyMutable(): DataValue

Return a clone of this value if it (together with all value subcomponents) is possibly mutable, or return this value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

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): Int?

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

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

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: IntMap)

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: Int)

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

Link copied to clipboard
open fun setThis(key: String, value: Int): IntMap

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
open fun sortedValues(): IntList

Return a sorted list of the values in this map.

Link copied to clipboard
open fun values(): IntList

Return a list of the entry values in this map.