class BiMapNonEmptyImpl<K,V>
undocumented
Extends: NonEmptyBase<E>
Implements: BiMap.NonEmpty<K,V>
Type parameters
Name | Description |
---|---|
K | undocumented |
V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
context
undocumented
context
isEmpty
Returns false since this collection is known to be non-empty.
isEmpty
keyValueMap
undocumented
keyValueMap
size
undocumented
size
valueKeyMap
undocumented
valueKeyMap
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
Definition
[Symbol.iterator]():
FastIterator
<E>;
Overrides
NonEmptyBase.[Symbol.iterator], FastIterable.[Symbol.iterator]
addEntries
undocumented
addEntries
Definition
addEntries(entries:
StreamSource
<readonly [K, V]>):
BiMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entries | StreamSource <readonly [K, V]> |
Overrides
addEntry
undocumented
addEntry
Definition
addEntry(entry: readonly [K, V]):
BiMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entry | readonly [K, V] |
Overrides
asNormal
undocumented
asNormal
assumeNonEmpty
Returns a self reference since this collection is known to be non-empty.
assumeNonEmpty
Definition
assumeNonEmpty(): this;
const m = BiMap.of([1, 1], [2, 2]);
m === m.assumeNonEmpty() // => true
Overrides
BiMap.assumeNonEmpty, NonEmpty.assumeNonEmpty, NonEmptyBase.assumeNonEmpty
copy
undocumented
copy
Definition
copy(keyValueMap?:
RMap.NonEmpty
<K, V>, valueKeyMap?:
RMap.NonEmpty
<V, K>):
BiMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
keyValueMap | RMap.NonEmpty <K, V> | |
valueKeyMap | RMap.NonEmpty <V, K> |
copyE
undocumented
copyE
filter
undocumented
filter
forEach
undocumented
forEach
Definition
forEach(f: (entry: readonly [K, V], index: number, halt: () => void) => void, options?: {
state?:
TraverseState
;
}): void;
Parameters
Name | Type | Description |
---|---|---|
f | (entry: readonly [K, V], index: number, halt: () => void) => void | |
options | { state?: TraverseState ; } |
Overrides
getKey
undocumented
getKey
getValue
undocumented
getValue
hasKey
undocumented
hasKey
hasValue
undocumented
hasValue
nonEmpty
Returns true since this collection is known to be non-empty
nonEmpty
Definition
nonEmpty(): this is
BiMap.NonEmpty
<K, V>;
BiMap.of([1, 1], [2, 2]).nonEmpty() // => true
Overrides
removeKey
undocumented
removeKey
removeKeyAndGet
undocumented
removeKeyAndGet
removeKeys
undocumented
removeKeys
removeValue
undocumented
removeValue
removeValueAndGet
undocumented
removeValueAndGet
removeValues
undocumented
removeValues
set
undocumented
set
Definition
set(key: K, value: V):
BiMap.NonEmpty
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
key | K | |
value | V |
Overrides
stream
undocumented
stream
streamKeys
undocumented
streamKeys
streamValues
undocumented
streamValues
toArray
undocumented
toArray
toBuilder
undocumented
toBuilder
toJSON
undocumented
toJSON
toString
undocumented
toString
updateKeyAtValue
undocumented
updateKeyAtValue