@Test public void testShorterSubstringIsBigger() { byte[] b1 = Bytes.toBytes("ab"); byte[] b2 = Bytes.toBytes("a"); int cmp = DescVarLengthFastByteComparisons.compareTo(b1, 0, b1.length, b2, 0, b2.length); assertTrue(cmp < 0); }
public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); }
DescVarLengthFastByteComparisons { public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); } }
DescVarLengthFastByteComparisons { public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); } private  DescVarLengthFastByteComparisons(); }
DescVarLengthFastByteComparisons { public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); } private  DescVarLengthFastByteComparisons(); static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2); }
DescVarLengthFastByteComparisons { public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); } private  DescVarLengthFastByteComparisons(); static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2);  }