@Test public void testEquals() { SimpleSplitParameters eq1 = new SimpleSplitParameters(PredefinedSetOfPages.ALL_PAGES); SimpleSplitParameters eq2 = new SimpleSplitParameters(PredefinedSetOfPages.ALL_PAGES); SimpleSplitParameters eq3 = new SimpleSplitParameters(PredefinedSetOfPages.ALL_PAGES); SimpleSplitParameters diff = new SimpleSplitParameters(PredefinedSetOfPages.ODD_PAGES); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpleSplitParameters)) { return false; } SimpleSplitParameters parameter = (SimpleSplitParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(setOfPages, parameter.setOfPages).isEquals(); }
SimpleSplitParameters extends AbstractSplitByPageParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpleSplitParameters)) { return false; } SimpleSplitParameters parameter = (SimpleSplitParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(setOfPages, parameter.setOfPages).isEquals(); } }
SimpleSplitParameters extends AbstractSplitByPageParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpleSplitParameters)) { return false; } SimpleSplitParameters parameter = (SimpleSplitParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(setOfPages, parameter.setOfPages).isEquals(); } SimpleSplitParameters(PredefinedSetOfPages setOfPages); }
SimpleSplitParameters extends AbstractSplitByPageParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpleSplitParameters)) { return false; } SimpleSplitParameters parameter = (SimpleSplitParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(setOfPages, parameter.setOfPages).isEquals(); } SimpleSplitParameters(PredefinedSetOfPages setOfPages); @Override Set<Integer> getPages(int upperLimit); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); PredefinedSetOfPages getSetOfPages(); }
SimpleSplitParameters extends AbstractSplitByPageParameters { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpleSplitParameters)) { return false; } SimpleSplitParameters parameter = (SimpleSplitParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)).append(setOfPages, parameter.setOfPages).isEquals(); } SimpleSplitParameters(PredefinedSetOfPages setOfPages); @Override Set<Integer> getPages(int upperLimit); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); PredefinedSetOfPages getSetOfPages();  }