Google.Maps.Util.KeyValueMinHeap< K, V >.KeyComparer

Compares a KeyValuePair{K,V} by key only.

Summary

Inheritance

Inherits from: Google.Maps.Util.KeyValueMinHeap< K, V >

Public functions

Compare(KeyValuePair< K, V > lhs, KeyValuePair< K, V > rhs)
int
Compares two KeyValuePair{K,V} by key.

Public functions

Compare

int Compare(
  KeyValuePair< K, V > lhs,
  KeyValuePair< K, V > rhs
)

Compares two KeyValuePair{K,V} by key.

Details
Parameters
lhs
The left-hand pair to compare.
rhs
The right-hand pair to compare.
Returns
An integer that is negative if lhs is less than rhs , positive if it is greater, and zero if they are equal.