@Test public void compositeLanguagesHasLocaleLanguageAsPrimaryTag() throws Exception { assertThat(compositeLanguage().primaryTag(),equalTo(compositeLocale().getLanguage())); }
@Override public String primaryTag() { return this.locale==null?"*":this.locale.getLanguage(); }
ImmutableLanguage implements Language { @Override public String primaryTag() { return this.locale==null?"*":this.locale.getLanguage(); } }
ImmutableLanguage implements Language { @Override public String primaryTag() { return this.locale==null?"*":this.locale.getLanguage(); } ImmutableLanguage(Locale locale); }
ImmutableLanguage implements Language { @Override public String primaryTag() { return this.locale==null?"*":this.locale.getLanguage(); } 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 primaryTag() { return this.locale==null?"*":this.locale.getLanguage(); } 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();  }