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