Esempio n. 1
0
  private int keyCompare(String s1, String s2) {
    SortKey<Object> k1 = sort.createSortKey(null, s1);
    SortKey<Object> k2 = sort.createSortKey(null, s2);
    System.out.println("K1: " + k1);
    System.out.println("K2: " + k2);

    return k1.compareTo(k2);
  }
Esempio n. 2
0
  @Test
  public void testEquals() {
    String abc = "ABC\u0234\u1023";
    SortKey<Object> key1 = sort.createSortKey(null, abc);
    SortKey<Object> key2 = sort.createSortKey(null, abc);

    assertEquals(0, key1.compareTo(key2));
  }