@Test public void equals() { Source source = newSource(1L, "test", "test url", "test category", 1L, 1L); Source other = newSource(1L, "test", "test url", "test category", 1L, 1L); assertEquals(source, other); }
@Override public boolean equals(Object object) { if (object instanceof Source) { Source source = (Source) object; return this.name.equals(source.name) && this.imageUrl.equals(source.imageUrl) && this.categoryName.equals(source.categoryName); } else { return false; } }
Source implements DatabaseModel { @Override public boolean equals(Object object) { if (object instanceof Source) { Source source = (Source) object; return this.name.equals(source.name) && this.imageUrl.equals(source.imageUrl) && this.categoryName.equals(source.categoryName); } else { return false; } } }
Source implements DatabaseModel { @Override public boolean equals(Object object) { if (object instanceof Source) { Source source = (Source) object; return this.name.equals(source.name) && this.imageUrl.equals(source.imageUrl) && this.categoryName.equals(source.categoryName); } else { return false; } } Source();  Source(Cursor cursor); }
Source implements DatabaseModel { @Override public boolean equals(Object object) { if (object instanceof Source) { Source source = (Source) object; return this.name.equals(source.name) && this.imageUrl.equals(source.imageUrl) && this.categoryName.equals(source.categoryName); } else { return false; } } Source();  Source(Cursor cursor); @Override void fillFromCursor(Cursor cursor); @Override boolean equals(Object object); @Override int hashCode(); }
Source implements DatabaseModel { @Override public boolean equals(Object object) { if (object instanceof Source) { Source source = (Source) object; return this.name.equals(source.name) && this.imageUrl.equals(source.imageUrl) && this.categoryName.equals(source.categoryName); } else { return false; } } Source();  Source(Cursor cursor); @Override void fillFromCursor(Cursor cursor); @Override boolean equals(Object object); @Override int hashCode(); public long id; public String name; public String imageUrl; public String categoryName; public Long categoryId; public long remoteId; }