@Test public void simpleLanguageHeaderRepresentationIsValid() throws Exception { ImmutableLanguage sut = simpleLanguage(); assertThat(sut.toHeader(),equalTo(simpleLocale().getLanguage())); }
@Override public String toHeader() { return languageTag().toLowerCase(Locale.ENGLISH); }
ImmutableLanguage implements Language { @Override public String toHeader() { return languageTag().toLowerCase(Locale.ENGLISH); } }
ImmutableLanguage implements Language { @Override public String toHeader() { return languageTag().toLowerCase(Locale.ENGLISH); } ImmutableLanguage(Locale locale); }
ImmutableLanguage implements Language { @Override public String toHeader() { return languageTag().toLowerCase(Locale.ENGLISH); } ImmutableLanguage(Locale locale); @Override boolean isWildcard(); @Override String primaryTag(); @Override String subTag(); @Override Locale locale(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableLanguage implements Language { @Override public String toHeader() { return languageTag().toLowerCase(Locale.ENGLISH); } ImmutableLanguage(Locale locale); @Override boolean isWildcard(); @Override String primaryTag(); @Override String subTag(); @Override Locale locale(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }