test_class.declarator: TRANSLATION_COMPARATOR= TranslationComparator.INSTANCE
test_class.modifier: private static final
test_class.original_string: private static final TranslationComparator TRANSLATION_COMPARATOR= TranslationComparator.INSTANCE;
test_class.type: TranslationComparator
test_class.var_name: TRANSLATION_COMPARATOR
test_class.file: kilt-core/src/test/java/de/poiu/kilt/facade/creation/TranslationComparatorTest.java
test_class.identifier: TranslationComparatorTest
test_case.body: @Test
    public void testCompare_DE_DE_AT() {
      assertThat(TRANSLATION_COMPARATOR.compare(
        new Translation(Language.of("de"), "de"),
        new Translation(Language.of("de_AT"), "de_AT")
      )).isLessThan(0);
  
      assertThat(TRANSLATION_COMPARATOR.compare(
        new Translation(Language.of("de_AT"), "de_AT"),
        new Translation(Language.of("de"), "de")
      )).isGreaterThan(0);
    }
test_case.class_method_signature: TranslationComparatorTest.testCompare_DE_DE_AT()
test_case.full_signature: @Test public void testCompare_DE_DE_AT()
test_case.identifier: testCompare_DE_DE_AT
test_case.invocations: isLessThan assertThat compare of of isGreaterThan assertThat compare of of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompare_DE_DE_AT()
focal_class.declarator: INSTANCE= new TranslationComparator()
focal_class.modifier: public static final
focal_class.original_string: public static final TranslationComparator INSTANCE= new TranslationComparator();
focal_class.type: TranslationComparator
focal_class.var_name: INSTANCE
focal_class.file: kilt-core/src/main/java/de/poiu/kilt/facade/creation/TranslationComparator.java
focal_class.identifier: TranslationComparator
focal_class.interfaces: implements Comparator<Translation>
focal_class.class_method_signature: TranslationComparator.compare(final Translation o1, final Translation o2)
focal_class.full_signature: @Override public int compare(final Translation o1, final Translation o2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (final Translation o1, final Translation o2)
focal_class.return: int
focal_class.signature: int compare(final Translation o1, final Translation o2)
focal_method.body: @Override
    public int compare(final Translation o1, final Translation o2) {
      if (o1 == o2) {
        return 0;
      }
  
      if (o1 == null) {
        return 1;
      }
  
      if (o2 == null) {
        return -1;
      }
  
      if (o1.getLang().equals(o2.getLang())) {
        return o1.getValue().compareTo(o2.getValue());
      }
  
      if (o1.getLang().equals(Language.of(""))) {
        return -1;
      } else if (o2.getLang().equals(Language.of(""))) {
        return 1;
      }
  
      if (o1.getLang().equals(Language.of("_"))) {
        return -1;
      } else if (o2.getLang().equals(Language.of("_"))) {
        return 1;
      }
  
      if (o1.getLang().getLang().startsWith("<")) {
        return -1;
      } else if (o2.getLang().getLang().startsWith("<")) {
        return 1;
      }
  
      return o1.getLang().compareTo(o2.getLang());
    }
focal_method.class_method_signature: TranslationComparator.compare(final Translation o1, final Translation o2)
focal_method.full_signature: @Override public int compare(final Translation o1, final Translation o2)
focal_method.identifier: compare
focal_method.invocations: equals getLang getLang compareTo getValue getValue equals getLang of equals getLang of equals getLang of equals getLang of startsWith getLang getLang startsWith getLang getLang compareTo getLang getLang
focal_method.modifiers: @Override public
focal_method.parameters: (final Translation o1, final Translation o2)
focal_method.return: int
focal_method.signature: int compare(final Translation o1, final Translation o2)