test_class.declarator: localeHeaderDelegate
test_class.modifier: private
test_class.original_string: private LocaleHeaderDelegate localeHeaderDelegate;
test_class.type: LocaleHeaderDelegate
test_class.var_name: localeHeaderDelegate
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/LocaleHeaderDelegateTest.java
test_class.identifier: LocaleHeaderDelegateTest
test_case.body: @UseDataProvider("forFomString")
      @Test
      public void fromString(String header, Locale expectedResult) {
          Locale locale = localeHeaderDelegate.fromString(header);
          assertEquals(expectedResult, locale);
      }
test_case.class_method_signature: LocaleHeaderDelegateTest.fromString(String header, Locale expectedResult)
test_case.full_signature: @UseDataProvider("forFomString") @Test public void fromString(String header, Locale expectedResult)
test_case.identifier: fromString
test_case.invocations: fromString assertEquals
test_case.modifiers: @UseDataProvider("forFomString") @Test public
test_case.parameters: (String header, Locale expectedResult)
test_case.return: void
test_case.signature: void fromString(String header, Locale expectedResult)
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/LocaleHeaderDelegate.java
focal_class.identifier: LocaleHeaderDelegate
focal_class.interfaces: implements RuntimeDelegate.HeaderDelegate<Locale>
focal_class.class_method_signature: LocaleHeaderDelegate.fromString(String header)
focal_class.full_signature: @Override public Locale fromString(String header)
focal_class.identifier: fromString
focal_class.modifiers: @Override public
focal_class.parameters: (String header)
focal_class.return: Locale
focal_class.signature: Locale fromString(String header)
focal_class.class_method_signature: LocaleHeaderDelegate.toString(Locale locale)
focal_class.full_signature: @Override public String toString(Locale locale)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (Locale locale)
focal_class.return: String
focal_class.signature: String toString(Locale locale)
focal_method.body: @Override
      public Locale fromString(String header) {
          if (header == null) {
              throw new IllegalArgumentException();
          }
  
          header = removeWhitespaces(header);
          int p = scan(header, ',');
          if (charAtIs(header, p, ',')) {
              header = header.substring(0, p);
          }
  
          p = scan(header, '-');
          if (charAtIs(header, p, '-')) {
              return new Locale(header.substring(0, p), header.substring(p + 1));
          }
          return new Locale(header);
      }
focal_method.class_method_signature: LocaleHeaderDelegate.fromString(String header)
focal_method.full_signature: @Override public Locale fromString(String header)
focal_method.identifier: fromString
focal_method.invocations: removeWhitespaces scan charAtIs substring scan charAtIs substring substring
focal_method.modifiers: @Override public
focal_method.parameters: (String header)
focal_method.return: Locale
focal_method.signature: Locale fromString(String header)