@UseDataProvider("forTestIsCompatible") @Test public void testIsCompatible(AcceptLanguage acceptLanguage, AcceptLanguage checkAcceptLanguage, boolean expectedResult) { assertEquals(expectedResult, acceptLanguage.isCompatible(checkAcceptLanguage)); }
public boolean isCompatible(AcceptLanguage other) { if (other == null) { return false; } return isCompatible(other.getLanguage()); }
AcceptLanguage implements QualityValue { public boolean isCompatible(AcceptLanguage other) { if (other == null) { return false; } return isCompatible(other.getLanguage()); } }
AcceptLanguage implements QualityValue { public boolean isCompatible(AcceptLanguage other) { if (other == null) { return false; } return isCompatible(other.getLanguage()); } AcceptLanguage(Language language);  AcceptLanguage(Language language, float qValue);  AcceptLanguage(Locale locale, float qValue);  AcceptLanguage(Locale locale); }
AcceptLanguage implements QualityValue { public boolean isCompatible(AcceptLanguage other) { if (other == null) { return false; } return isCompatible(other.getLanguage()); } 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 boolean isCompatible(AcceptLanguage other) { if (other == null) { return false; } return isCompatible(other.getLanguage()); } 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; }