@Test public void testDifferentIdPojoDoesNotEqual() { GitHubRepositorySearch search1 = new GitHubRepositorySearch("search", ITEMS); GitHubRepositorySearch search2 = new GitHubRepositorySearch("other", ITEMS); assertFalse(search1.equals(search2)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitHubRepositorySearch that = (GitHubRepositorySearch) o; if (!search.equals(that.search)) return false; return items.equals(that.items); }
GitHubRepositorySearch { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitHubRepositorySearch that = (GitHubRepositorySearch) o; if (!search.equals(that.search)) return false; return items.equals(that.items); } }
GitHubRepositorySearch { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitHubRepositorySearch that = (GitHubRepositorySearch) o; if (!search.equals(that.search)) return false; return items.equals(that.items); } GitHubRepositorySearch(@NonNull final String search, @NonNull final List<Integer> items); }
GitHubRepositorySearch { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitHubRepositorySearch that = (GitHubRepositorySearch) o; if (!search.equals(that.search)) return false; return items.equals(that.items); } GitHubRepositorySearch(@NonNull final String search, @NonNull final List<Integer> items); @NonNull static GitHubRepositorySearch none(); boolean isSome(); @NonNull String getSearch(); @NonNull List<Integer> getItems(); @Override boolean equals(Object o); @Override int hashCode(); }
GitHubRepositorySearch { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitHubRepositorySearch that = (GitHubRepositorySearch) o; if (!search.equals(that.search)) return false; return items.equals(that.items); } GitHubRepositorySearch(@NonNull final String search, @NonNull final List<Integer> items); @NonNull static GitHubRepositorySearch none(); boolean isSome(); @NonNull String getSearch(); @NonNull List<Integer> getItems(); @Override boolean equals(Object o); @Override int hashCode();  }