Class MinHeapEntryRefComparer<TKey, TValue>
Implements
IRefComparer<HeapEntry<TKey, TValue>>
Inherited Members
Namespace: Tenray.ZoneTree.Core
Assembly: ZoneTree.dll
Syntax
public sealed class MinHeapEntryRefComparer<TKey, TValue> : IRefComparer<HeapEntry<TKey, TValue>>
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Constructors
| Improve this Doc View SourceMinHeapEntryRefComparer(IRefComparer<TKey>)
Declaration
public MinHeapEntryRefComparer(IRefComparer<TKey> keyComparer)
Parameters
Type | Name | Description |
---|---|---|
IRefComparer<TKey> | keyComparer |
Properties
| Improve this Doc View SourceKeyComparer
Declaration
public IRefComparer<TKey> KeyComparer { get; }
Property Value
Type | Description |
---|---|
IRefComparer<TKey> |
Methods
| Improve this Doc View SourceCompare(in HeapEntry<TKey, TValue>, in HeapEntry<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 HeapEntry<TKey, TValue> x, in HeapEntry<TKey, TValue> y)
Parameters
Type | Name | Description |
---|---|---|
HeapEntry<TKey, TValue> | x | The first key |
HeapEntry<TKey, TValue> | y | The second key |
Returns
Type | Description |
---|---|
int | -1 (x < y), 0 (x == y) or 1 (x > y) |