@Test public void retrievesLocaleFromLanguage() { Locale locale = new Locale("en", "us"); AcceptLanguage acceptLanguage = new AcceptLanguage(new Language(locale)); assertEquals(locale, acceptLanguage.getLocale()); }
public Locale getLocale() { return language.getLocale(); }
AcceptLanguage implements QualityValue { public Locale getLocale() { return language.getLocale(); } }
AcceptLanguage implements QualityValue { public Locale getLocale() { return language.getLocale(); } AcceptLanguage(Language language);  AcceptLanguage(Language language, float qValue);  AcceptLanguage(Locale locale, float qValue);  AcceptLanguage(Locale locale); }
AcceptLanguage implements QualityValue { public Locale getLocale() { return language.getLocale(); } AcceptLanguage(Language language);  AcceptLanguage(Language language, float qValue);  AcceptLanguage(Locale locale, float qValue);  AcceptLanguage(Locale locale); static AcceptLanguage valueOf(String header); Language getLanguage(); String getPrimaryTag(); String getSubTag(); Locale getLocale(); boolean isCompatible(AcceptLanguage other); boolean isCompatible(Language other); @Override float getQvalue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AcceptLanguage implements QualityValue { public Locale getLocale() { return language.getLocale(); } AcceptLanguage(Language language);  AcceptLanguage(Language language, float qValue);  AcceptLanguage(Locale locale, float qValue);  AcceptLanguage(Locale locale); static AcceptLanguage valueOf(String header); Language getLanguage(); String getPrimaryTag(); String getSubTag(); Locale getLocale(); boolean isCompatible(AcceptLanguage other); boolean isCompatible(Language other); @Override float getQvalue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final AcceptLanguage DEFAULT; }