@Test public void testNonEquals() { LanguageTag lt1 = new LanguageTag("en", "us"); LanguageTag lt2 = new LanguageTag("en", "gb"); assertFalse(lt1.equals(lt2)); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LanguageTag) || o.getClass() != this.getClass()) { return false; } final LanguageTag that = (LanguageTag) o; if (primaryTag != null ? !primaryTag.equals(that.primaryTag) : that.primaryTag != null) { return false; } if (subTags != null ? !subTags.equals(that.subTags) : that.subTags != null) { return false; } return !(tag != null ? !tag.equals(that.tag) : that.tag != null); }
LanguageTag { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LanguageTag) || o.getClass() != this.getClass()) { return false; } final LanguageTag that = (LanguageTag) o; if (primaryTag != null ? !primaryTag.equals(that.primaryTag) : that.primaryTag != null) { return false; } if (subTags != null ? !subTags.equals(that.subTags) : that.subTags != null) { return false; } return !(tag != null ? !tag.equals(that.tag) : that.tag != null); } }
LanguageTag { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LanguageTag) || o.getClass() != this.getClass()) { return false; } final LanguageTag that = (LanguageTag) o; if (primaryTag != null ? !primaryTag.equals(that.primaryTag) : that.primaryTag != null) { return false; } if (subTags != null ? !subTags.equals(that.subTags) : that.subTags != null) { return false; } return !(tag != null ? !tag.equals(that.tag) : that.tag != null); } protected  LanguageTag();  LanguageTag(final String primaryTag, final String subTags);  LanguageTag(final String header);  LanguageTag(final HttpHeaderReader reader); }
LanguageTag { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LanguageTag) || o.getClass() != this.getClass()) { return false; } final LanguageTag that = (LanguageTag) o; if (primaryTag != null ? !primaryTag.equals(that.primaryTag) : that.primaryTag != null) { return false; } if (subTags != null ? !subTags.equals(that.subTags) : that.subTags != null) { return false; } return !(tag != null ? !tag.equals(that.tag) : that.tag != null); } protected  LanguageTag();  LanguageTag(final String primaryTag, final String subTags);  LanguageTag(final String header);  LanguageTag(final HttpHeaderReader reader); static LanguageTag valueOf(final String s); final boolean isCompatible(final Locale tag); final Locale getAsLocale(); final String getTag(); final String getPrimaryTag(); final String getSubTags(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
LanguageTag { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LanguageTag) || o.getClass() != this.getClass()) { return false; } final LanguageTag that = (LanguageTag) o; if (primaryTag != null ? !primaryTag.equals(that.primaryTag) : that.primaryTag != null) { return false; } if (subTags != null ? !subTags.equals(that.subTags) : that.subTags != null) { return false; } return !(tag != null ? !tag.equals(that.tag) : that.tag != null); } protected  LanguageTag();  LanguageTag(final String primaryTag, final String subTags);  LanguageTag(final String header);  LanguageTag(final HttpHeaderReader reader); static LanguageTag valueOf(final String s); final boolean isCompatible(final Locale tag); final Locale getAsLocale(); final String getTag(); final String getPrimaryTag(); final String getSubTags(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }