Example #1
0
 internal static int Compare(long thisLong0, long thisLong1, long thatLong0, long thatLong1)
 {
     return(RawBits.Compare(thisLong0, ( sbyte )thisLong1, thatLong0, ( sbyte )thatLong1));
 }
Example #2
0
 /// <summary>
 /// Compares the value of this key to that of another key.
 /// This method is expected to be called in scenarios where inconsistent reads may happen (and later retried).
 /// </summary>
 /// <param name="other"> the <seealso cref="NumberIndexKey"/> to compare to. </param>
 /// <returns> comparison against the {@code other} <seealso cref="NumberIndexKey"/>. </returns>
 internal override int CompareValueTo(NumberIndexKey other)
 {
     return(RawBits.Compare(RawValueBits, Type, other.RawValueBits, other.Type));
 }