Class
MapEntry<K, V>
class MapEntry<K, V>
Namespace: System.Collections.Generic
Assembly: Raven.Core.dll
Source file: MapEntry.rvn
Inheritance: Object → MapEntry<K, V>
Constructors
1 item
MapEntry(map: IDictionary<K, V>, key: K)
<summary>Creates a live locator without reading or changing the map.</summary> <param name="map">The mutable map retained by this locator.</param> <param name="key">The key used fo…
Properties
2 itemsMethods
9 items
AndModify(transform: V -> V) -> MapEntry<K, V>
<summary>Transforms a present value once and writes back the result.</summary> <param name="transform">A synchronous replacement callback; skipped when absent.</param> <returns>Thi…
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
Find() -> Optional<V>
<summary>Looks up the current value, preserving the distinction between absence and a present null.</summary> <returns>Some for a present key; otherwise None.</returns>
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
OrInsert(value: V) -> V
<summary>Inserts the supplied value only when the key is absent.</summary> <param name="value">The eagerly evaluated fallback value.</param> <returns>The existing or inserted value…
OrInsertWith(factory: () -> V) -> V
<summary>Calls the factory once only when absent, then inserts if still absent.</summary> <param name="factory">A synchronous factory; may reenter the map.</param> <returns>The cur…
Set(value: V) -> MapEntry<K, V>
<summary>Inserts or replaces the value and returns this locator.</summary> <param name="value">The value to store.</param> <returns>This reusable locator.</returns>
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString
Operators
1 item
Static extension member:
implicit conversion<T>(value: MapEntry<K, V>?) -> Optional<MapEntry<K, V>>
Converts a nullable reference to `Some`, or to `None` when it is `null`.
Extension from OptionalExtensions1<T>.op_Implicit