@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new IpCompletionRelevance("a", "b"), new IpCompletionRelevance("a", ImmutableList.of("b"))) .addEqualityGroup(new IpCompletionRelevance("other", "b")) .addEqualityGroup(new IpCompletionRelevance("a", "other")) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionRelevance)) { return false; } IpCompletionRelevance relevance = (IpCompletionRelevance) o; return _display.equals(relevance._display) && _matchTags.equals(relevance._matchTags); }
IpCompletionRelevance implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionRelevance)) { return false; } IpCompletionRelevance relevance = (IpCompletionRelevance) o; return _display.equals(relevance._display) && _matchTags.equals(relevance._matchTags); } }
IpCompletionRelevance implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionRelevance)) { return false; } IpCompletionRelevance relevance = (IpCompletionRelevance) o; return _display.equals(relevance._display) && _matchTags.equals(relevance._matchTags); } IpCompletionRelevance(String display, String... matchTags);  IpCompletionRelevance(String display, List<String> matchTags); }
IpCompletionRelevance implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionRelevance)) { return false; } IpCompletionRelevance relevance = (IpCompletionRelevance) o; return _display.equals(relevance._display) && _matchTags.equals(relevance._matchTags); } IpCompletionRelevance(String display, String... matchTags);  IpCompletionRelevance(String display, List<String> matchTags); boolean matches(String[] subQueries, Ip ip); @JsonProperty(PROP_DISPLAY) String getDisplay(); @JsonProperty(PROP_MATCH_TAGS) List<String> getMatchTags(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
IpCompletionRelevance implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionRelevance)) { return false; } IpCompletionRelevance relevance = (IpCompletionRelevance) o; return _display.equals(relevance._display) && _matchTags.equals(relevance._matchTags); } IpCompletionRelevance(String display, String... matchTags);  IpCompletionRelevance(String display, List<String> matchTags); boolean matches(String[] subQueries, Ip ip); @JsonProperty(PROP_DISPLAY) String getDisplay(); @JsonProperty(PROP_MATCH_TAGS) List<String> getMatchTags(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }