test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/LanguageTest.java
test_class.identifier: LanguageTest
test_case.body: @UseDataProvider("forTestIsCompatible")
      @Test
      public void testIsCompatible(Language language, Language checkLanguage, boolean expectedResult) {
          assertEquals(expectedResult, language.isCompatible(checkLanguage));
      }
test_case.class_method_signature: LanguageTest.testIsCompatible(Language language, Language checkLanguage, boolean expectedResult)
test_case.full_signature: @UseDataProvider("forTestIsCompatible") @Test public void testIsCompatible(Language language, Language checkLanguage, boolean expectedResult)
test_case.identifier: testIsCompatible
test_case.invocations: assertEquals isCompatible
test_case.modifiers: @UseDataProvider("forTestIsCompatible") @Test public
test_case.parameters: (Language language, Language checkLanguage, boolean expectedResult)
test_case.return: void
test_case.signature: void testIsCompatible(Language language, Language checkLanguage, boolean expectedResult)
focal_class.declarator: locale
focal_class.modifier: private final
focal_class.original_string: private final Locale locale;
focal_class.type: Locale
focal_class.var_name: locale
focal_class.declarator: primaryTag
focal_class.modifier: private final
focal_class.original_string: private final String primaryTag;
focal_class.type: String
focal_class.var_name: primaryTag
focal_class.declarator: subTag
focal_class.modifier: private final
focal_class.original_string: private final String subTag;
focal_class.type: String
focal_class.var_name: subTag
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/Language.java
focal_class.identifier: Language
focal_class.class_method_signature: Language.Language(Locale locale)
focal_class.full_signature: public  Language(Locale locale)
focal_class.identifier: Language
focal_class.modifiers: public
focal_class.parameters: (Locale locale)
focal_class.signature:  Language(Locale locale)
focal_class.class_method_signature: Language.getPrimaryTag()
focal_class.full_signature: public String getPrimaryTag()
focal_class.identifier: getPrimaryTag
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrimaryTag()
focal_class.class_method_signature: Language.getSubTag()
focal_class.full_signature: public String getSubTag()
focal_class.identifier: getSubTag
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSubTag()
focal_class.class_method_signature: Language.getLocale()
focal_class.full_signature: public Locale getLocale()
focal_class.identifier: getLocale
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Locale
focal_class.signature: Locale getLocale()
focal_class.class_method_signature: Language.isCompatible(Language other)
focal_class.full_signature: public boolean isCompatible(Language other)
focal_class.identifier: isCompatible
focal_class.modifiers: public
focal_class.parameters: (Language other)
focal_class.return: boolean
focal_class.signature: boolean isCompatible(Language other)
focal_class.class_method_signature: Language.toString()
focal_class.full_signature: @Override public final String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Language.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: Language.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_method.body: public boolean isCompatible(Language other) {
          if (other == null) {
              return false;
          }
          if ("*".equals(primaryTag)) {
              return true;
          }
          // primary tags match and sub-tag not specified (any matches)
          // if 'accept-language' is 'en' then 'en-us' and 'en-gb' is matches
          return primaryTag.equals(other.primaryTag)
                 && (subTag.isEmpty() || subTag.equals(other.subTag));
      }
focal_method.class_method_signature: Language.isCompatible(Language other)
focal_method.full_signature: public boolean isCompatible(Language other)
focal_method.identifier: isCompatible
focal_method.invocations: equals equals isEmpty equals
focal_method.modifiers: public
focal_method.parameters: (Language other)
focal_method.return: boolean
focal_method.signature: boolean isCompatible(Language other)