MapEntry
Defined in: src/interfaces/Map.ts:9
A key-value pair of a map. Entries reached by iterating a map’s entrySet() are live: setValue writes through
to the map. Entries returned by navigation and first/last methods are immutable snapshots.
Type Parameters
Section titled “Type Parameters”K
V
Methods
Section titled “Methods”equals()
Section titled “equals()”equals(
o):boolean
Defined in: src/interfaces/Map.ts:22
Returns true if o is an entry with an equal key and an equal value (by Objects.equals).
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
getKey()
Section titled “getKey()”getKey():
K
Defined in: src/interfaces/Map.ts:11
Returns the key.
Returns
Section titled “Returns”K
getValue()
Section titled “getValue()”getValue():
V
Defined in: src/interfaces/Map.ts:13
Returns the value.
Returns
Section titled “Returns”V
hashCode()
Section titled “hashCode()”hashCode():
number
Defined in: src/interfaces/Map.ts:24
Returns hash(key) ^ hash(value), so equal entries hash equally.
Returns
Section titled “Returns”number
setValue()
Section titled “setValue()”setValue(
value):V
Defined in: src/interfaces/Map.ts:20
Replaces the value (and, for a live entry, the value in the backing map).
Parameters
Section titled “Parameters”V
Returns
Section titled “Returns”V
the previous value
Throws
Section titled “Throws”UnsupportedOperationException if the entry is immutable (a snapshot or from an unmodifiable map)
Throws
Section titled “Throws”NullPointerException if value is null and the backing map rejects null values
toString()
Section titled “toString()”toString():
string
Defined in: src/interfaces/Map.ts:26
Returns key=value.
Returns
Section titled “Returns”string