Table of Contents

Class AtomicDictionary<TKey, TValue>

Namespace
Apache.NMS.ActiveMQ.State
Assembly
Apache.NMS.ActiveMQ.dll
public class AtomicDictionary<TKey, TValue> where TKey : class where TValue : class

Type Parameters

TKey
TValue
Inheritance
AtomicDictionary<TKey, TValue>
Inherited Members

Constructors

AtomicDictionary()

public AtomicDictionary()

Properties

this[TKey]

public TValue this[TKey key] { get; set; }

Parameters

key TKey

Property Value

TValue

Keys

public AtomicCollection<TKey> Keys { get; }

Property Value

AtomicCollection<TKey>

Values

public AtomicCollection<TValue> Values { get; }

Property Value

AtomicCollection<TValue>

Methods

Add(TKey, TValue)

public void Add(TKey k, TValue v)

Parameters

k TKey
v TValue

Clear()

public void Clear()

ContainsKey(TKey)

public bool ContainsKey(TKey k)

Parameters

k TKey

Returns

bool

ContainsValue(TValue)

public bool ContainsValue(TValue v)

Parameters

v TValue

Returns

bool

Remove(TKey)

public bool Remove(TKey v)

Parameters

v TKey

Returns

bool

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue val)

Parameters

key TKey
val TValue

Returns

bool