Class TreeDictionary<K, V>
A sorted generic dictionary based on a red-black tree set.
Inheritance
System.Object
EnumerableBase <KeyValuePair <K, V>>
CollectionValueBase <KeyValuePair <K, V>>
DictionaryBase <K, V>
SortedDictionaryBase <K, V>
TreeDictionary<K, V>
Implements
ISortedDictionary <K, V>
IDictionary<K, V>
ICollectionValue <KeyValuePair <K, V>>
System.Collections.Generic.IEnumerable <KeyValuePair <K, V>>
IFormattable
Inherited Members
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public class TreeDictionary<K, V> : SortedDictionaryBase<K, V>, ISortedDictionary<K, V>, IDictionary<K, V>, ICollectionValue<KeyValuePair<K, V>>, System.Collections.Generic.IEnumerable<KeyValuePair<K, V>>, IShowable, IFormattable
Type Parameters
Name | Description |
---|---|
K | |
V |
Constructors
| Improve this Doc View SourceTreeDictionary(MemoryType)
Create a red-black tree dictionary using the natural comparer for keys.
Declaration
public TreeDictionary(MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
Memory |
memoryType |
TreeDictionary(System.Collections.Generic.IComparer<K>, MemoryType)
Create a red-black tree dictionary using an external comparer for keys.
Declaration
public TreeDictionary(System.Collections.Generic.IComparer<K> comparer, MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
System. |
comparer | The external comparer |
Memory |
memoryType |
Methods
| Improve this Doc View SourceSnapshot()
Make a snapshot of the current state of this dictionary
Declaration
public System.Collections.Generic.IEnumerable<KeyValuePair<K, V>> Snapshot()
Returns
Type | Description |
---|---|
System. |
The snapshot |
Implements
System.Collections.Generic.IEnumerable<>
IFormattable