@Test public void testEquals() { assertEquals(genreSummary1, genreSummary1); assertEquals(genreSummary1, genreSummary2); assertFalse(genreSummary1.equals("abc")); assertFalse(genreSummary1.equals(genreSummary3)); assertFalse(genreSummary1.equals(genreSummary4)); assertFalse(genreSummary1.equals(genreSummary5)); assertFalse(genreSummary1.equals(genreSummary6)); }
@Override public boolean equals(Object obj) { GenreSummary gs = null; boolean result = false; if (obj == this) { return true; } if (!(obj instanceof GenreSummary)) { return false; } gs = (GenreSummary) obj; result = (genre != null && genre.equals(gs.genre)); result &= (movieTitleCount == gs.movieTitleCount); result &= (soapTitleCount == gs.soapTitleCount); return result; }
GenreSummary implements Serializable { @Override public boolean equals(Object obj) { GenreSummary gs = null; boolean result = false; if (obj == this) { return true; } if (!(obj instanceof GenreSummary)) { return false; } gs = (GenreSummary) obj; result = (genre != null && genre.equals(gs.genre)); result &= (movieTitleCount == gs.movieTitleCount); result &= (soapTitleCount == gs.soapTitleCount); return result; } }
GenreSummary implements Serializable { @Override public boolean equals(Object obj) { GenreSummary gs = null; boolean result = false; if (obj == this) { return true; } if (!(obj instanceof GenreSummary)) { return false; } gs = (GenreSummary) obj; result = (genre != null && genre.equals(gs.genre)); result &= (movieTitleCount == gs.movieTitleCount); result &= (soapTitleCount == gs.soapTitleCount); return result; }  }
GenreSummary implements Serializable { @Override public boolean equals(Object obj) { GenreSummary gs = null; boolean result = false; if (obj == this) { return true; } if (!(obj instanceof GenreSummary)) { return false; } gs = (GenreSummary) obj; result = (genre != null && genre.equals(gs.genre)); result &= (movieTitleCount == gs.movieTitleCount); result &= (soapTitleCount == gs.soapTitleCount); return result; }  String getGenre(); void setGenre(String genre); int getMovieTitleCount(); void setMovieTitleCount(int movieTitleCount); int getSoapTitleCount(); void setSoapTitleCount(int soapTitleCount); long getSumOfSizeOfAllTitlesInThisGenre(); void setSumOfSizeOfAllTitlesInThisGenre(
			long sumOfSizeOfAllTitlesInThisGenre); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
GenreSummary implements Serializable { @Override public boolean equals(Object obj) { GenreSummary gs = null; boolean result = false; if (obj == this) { return true; } if (!(obj instanceof GenreSummary)) { return false; } gs = (GenreSummary) obj; result = (genre != null && genre.equals(gs.genre)); result &= (movieTitleCount == gs.movieTitleCount); result &= (soapTitleCount == gs.soapTitleCount); return result; }  String getGenre(); void setGenre(String genre); int getMovieTitleCount(); void setMovieTitleCount(int movieTitleCount); int getSoapTitleCount(); void setSoapTitleCount(int soapTitleCount); long getSumOfSizeOfAllTitlesInThisGenre(); void setSumOfSizeOfAllTitlesInThisGenre(
			long sumOfSizeOfAllTitlesInThisGenre); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }