test_class.file: culvert-main/src/test/java/com/bah/culvert/data/KeyComparatorTest.java
test_class.identifier: KeyComparatorTest
test_case.body: @Test
    public void testFullKeysCompare() throws Exception {
      Comparator<? super CKeyValue> comparator = KeyComparator.INSTANCE;
      CKeyValue one = new CKeyValue(new byte[0], new byte[0], new byte[] { 2 });
      CKeyValue two = new CKeyValue(new byte[1], new byte[1], new byte[] { 1 });
      int compare = comparator.compare(one, two);
      assertTrue(compare < 0);
  
      one = new CKeyValue(new byte[] { 1 }, new byte[] { 1 }, new byte[] { 1 });
      two = new CKeyValue(new byte[] { 1, 2 }, new byte[] { 1, 2 },
          new byte[] { 1 });
      compare = comparator.compare(one, two);
      assertTrue(compare < 0);
  
      one = new CKeyValue(new byte[] { 1, 2 }, new byte[] { 2 }, new byte[] { 1 });
      two = new CKeyValue(new byte[] { 1, 2 }, new byte[1], new byte[] { 1 });
      compare = comparator.compare(one, two);
      assertTrue(compare > 0);
  
      compare = comparator.compare(two, two);
      assertEquals(0, compare);
  
    }
test_case.class_method_signature: KeyComparatorTest.testFullKeysCompare()
test_case.full_signature: @Test public void testFullKeysCompare()
test_case.identifier: testFullKeysCompare
test_case.invocations: compare assertTrue compare assertTrue compare assertTrue compare assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFullKeysCompare()
focal_class.declarator: INSTANCE = new KeyComparator()
focal_class.modifier: public static final
focal_class.original_string: public static final Comparator<? super CKeyValue> INSTANCE = new KeyComparator();
focal_class.type: Comparator<? super CKeyValue>
focal_class.var_name: INSTANCE
focal_class.file: culvert-main/src/main/java/com/bah/culvert/data/KeyComparator.java
focal_class.identifier: KeyComparator
focal_class.interfaces: implements Comparator<CKeyValue>
focal_class.class_method_signature: KeyComparator.KeyComparator()
focal_class.full_signature: private  KeyComparator()
focal_class.identifier: KeyComparator
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  KeyComparator()
focal_class.class_method_signature: KeyComparator.compare(CKeyValue arg0, CKeyValue arg1)
focal_class.full_signature: @Override public int compare(CKeyValue arg0, CKeyValue arg1)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (CKeyValue arg0, CKeyValue arg1)
focal_class.return: int
focal_class.signature: int compare(CKeyValue arg0, CKeyValue arg1)
focal_method.body: @Override
    public int compare(CKeyValue arg0, CKeyValue arg1) {
      LexicographicBytesComparator comparator = LexicographicBytesComparator.INSTANCE;
      int compare = comparator.compare(arg0.getRowId(), arg1.getRowId());
      if (compare == 0) {
        compare = comparator.compare(arg0.getFamily(), arg1.getFamily());
        if (compare == 0)
          compare = comparator.compare(arg0.getQualifier(), arg1.getQualifier());
      }
      return compare;
    }
focal_method.class_method_signature: KeyComparator.compare(CKeyValue arg0, CKeyValue arg1)
focal_method.full_signature: @Override public int compare(CKeyValue arg0, CKeyValue arg1)
focal_method.identifier: compare
focal_method.invocations: compare getRowId getRowId compare getFamily getFamily compare getQualifier getQualifier
focal_method.modifiers: @Override public
focal_method.parameters: (CKeyValue arg0, CKeyValue arg1)
focal_method.return: int
focal_method.signature: int compare(CKeyValue arg0, CKeyValue arg1)