Table of Contents

Class SortedValueMap<K, V>

Namespace
Coherence.Entities
Assembly
Coherence.Entities.dll
public class SortedValueMap<K, V>

Type Parameters

K
V
Inheritance
SortedValueMap<K, V>

Constructors

SortedValueMap(IComparer<V>)

public SortedValueMap(IComparer<V> comparer)

Parameters

comparer IComparer<V>

SortedValueMap(IComparer<V>, IDictionary<K, V>)

public SortedValueMap(IComparer<V> comparer, IDictionary<K, V> data)

Parameters

comparer IComparer<V>
data IDictionary<K, V>

SortedValueMap(IComparer<V>, int)

public SortedValueMap(IComparer<V> comparer, int capacity)

Parameters

comparer IComparer<V>
capacity int

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[K]

public V this[K key] { get; set; }

Parameters

key K

Property Value

V

Keys

public ICollection<K> Keys { get; }

Property Value

ICollection<K>

SortedValues

public IReadOnlyList<V> SortedValues { get; }

Property Value

IReadOnlyList<V>

Methods

Add(KeyValuePair<K, V>)

public void Add(KeyValuePair<K, V> item)

Parameters

item KeyValuePair<K, V>

Add(K, V)

public void Add(K key, V value)

Parameters

key K
value V

Clear()

public void Clear()

Contains(KeyValuePair<K, V>)

public bool Contains(KeyValuePair<K, V> item)

Parameters

item KeyValuePair<K, V>

Returns

bool

ContainsKey(K)

public bool ContainsKey(K key)

Parameters

key K

Returns

bool

CopyTo(KeyValuePair<K, V>[], int)

public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex)

Parameters

array KeyValuePair<K, V>[]
arrayIndex int

GetEnumerator()

Get enumerator for unsorted KeyValuePair's

public Dictionary<K, V>.Enumerator GetEnumerator()

Returns

Dictionary<K, V>.Enumerator

Remove(KeyValuePair<K, V>)

public bool Remove(KeyValuePair<K, V> item)

Parameters

item KeyValuePair<K, V>

Returns

bool

Remove(K)

public bool Remove(K key)

Parameters

key K

Returns

bool

TryGetValue(K, out V)

public bool TryGetValue(K key, out V value)

Parameters

key K
value V

Returns

bool