@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new IpCompletionMetadata( ImmutableList.of(new IpCompletionRelevance("display", ImmutableList.of("tag")))), new IpCompletionMetadata( ImmutableList.of(new IpCompletionRelevance("display", ImmutableList.of("tag"))))) .addEqualityGroup( new IpCompletionMetadata( ImmutableList.of(new IpCompletionRelevance("display", ImmutableList.of("other"))))) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionMetadata)) { return false; } IpCompletionMetadata that = (IpCompletionMetadata) o; return _relevances.equals(that._relevances); }
IpCompletionMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionMetadata)) { return false; } IpCompletionMetadata that = (IpCompletionMetadata) o; return _relevances.equals(that._relevances); } }
IpCompletionMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionMetadata)) { return false; } IpCompletionMetadata that = (IpCompletionMetadata) o; return _relevances.equals(that._relevances); } IpCompletionMetadata();  IpCompletionMetadata(IpCompletionRelevance relevance);  IpCompletionMetadata(List<IpCompletionRelevance> relevances); }
IpCompletionMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionMetadata)) { return false; } IpCompletionMetadata that = (IpCompletionMetadata) o; return _relevances.equals(that._relevances); } IpCompletionMetadata();  IpCompletionMetadata(IpCompletionRelevance relevance);  IpCompletionMetadata(List<IpCompletionRelevance> relevances); void addRelevance(IpCompletionRelevance relevance); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); @JsonProperty(PROP_RELEVANCES) @Nonnull List<IpCompletionRelevance> getRelevances(); }
IpCompletionMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof IpCompletionMetadata)) { return false; } IpCompletionMetadata that = (IpCompletionMetadata) o; return _relevances.equals(that._relevances); } IpCompletionMetadata();  IpCompletionMetadata(IpCompletionRelevance relevance);  IpCompletionMetadata(List<IpCompletionRelevance> relevances); void addRelevance(IpCompletionRelevance relevance); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); @JsonProperty(PROP_RELEVANCES) @Nonnull List<IpCompletionRelevance> getRelevances();  }