Class KeyValuePocketRefComparer<TKey, TValue>
Implements
IRefComparer<KeyValuePocket<TKey, TValue>>
Inherited Members
Namespace: Tenray.ZoneTree.WAL
Assembly: ZoneTree.dll
Syntax
public sealed class KeyValuePocketRefComparer<TKey, TValue> : IRefComparer<KeyValuePocket<TKey, TValue>>
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Constructors
| Improve this Doc View SourceKeyValuePocketRefComparer(IRefComparer<TKey>)
Declaration
public KeyValuePocketRefComparer(IRefComparer<TKey> comparer)
Parameters
Type | Name | Description |
---|---|---|
IRefComparer<TKey> | comparer |
Properties
| Improve this Doc View SourceComparer
Declaration
public IRefComparer<TKey> Comparer { get; }
Property Value
Type | Description |
---|---|
IRefComparer<TKey> |
Methods
| Improve this Doc View SourceCompare(in KeyValuePocket<TKey, TValue>, in KeyValuePocket<TKey, TValue>)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public int Compare(in KeyValuePocket<TKey, TValue> x, in KeyValuePocket<TKey, TValue> y)
Parameters
Type | Name | Description |
---|---|---|
KeyValuePocket<TKey, TValue> | x | The first key |
KeyValuePocket<TKey, TValue> | y | The second key |
Returns
Type | Description |
---|---|
int | -1 (x < y), 0 (x == y) or 1 (x > y) |