@Test public void testEquals() { BoxAndWhiskerItem i1 = new BoxAndWhiskerItem( 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, new ArrayList() ); BoxAndWhiskerItem i2 = new BoxAndWhiskerItem( 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, new ArrayList() ); assertEquals(i1, i2); assertEquals(i2, i1); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtilities.equal(this.mean, that.mean)) { return false; } if (!ObjectUtilities.equal(this.median, that.median)) { return false; } if (!ObjectUtilities.equal(this.q1, that.q1)) { return false; } if (!ObjectUtilities.equal(this.q3, that.q3)) { return false; } if (!ObjectUtilities.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtilities.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtilities.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtilities.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtilities.equal(this.outliers, that.outliers)) { return false; } return true; }
BoxAndWhiskerItem implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtilities.equal(this.mean, that.mean)) { return false; } if (!ObjectUtilities.equal(this.median, that.median)) { return false; } if (!ObjectUtilities.equal(this.q1, that.q1)) { return false; } if (!ObjectUtilities.equal(this.q3, that.q3)) { return false; } if (!ObjectUtilities.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtilities.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtilities.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtilities.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtilities.equal(this.outliers, that.outliers)) { return false; } return true; } }
BoxAndWhiskerItem implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtilities.equal(this.mean, that.mean)) { return false; } if (!ObjectUtilities.equal(this.median, that.median)) { return false; } if (!ObjectUtilities.equal(this.q1, that.q1)) { return false; } if (!ObjectUtilities.equal(this.q3, that.q3)) { return false; } if (!ObjectUtilities.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtilities.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtilities.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtilities.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtilities.equal(this.outliers, that.outliers)) { return false; } return true; } BoxAndWhiskerItem(Number mean,
                             Number median,
                             Number q1,
                             Number q3,
                             Number minRegularValue,
                             Number maxRegularValue,
                             Number minOutlier,
                             Number maxOutlier,
                             List<Number> outliers);  BoxAndWhiskerItem(double mean, double median, double q1, double q3,
            double minRegularValue, double maxRegularValue, double minOutlier,
            double maxOutlier, List<Number> outliers); }
BoxAndWhiskerItem implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtilities.equal(this.mean, that.mean)) { return false; } if (!ObjectUtilities.equal(this.median, that.median)) { return false; } if (!ObjectUtilities.equal(this.q1, that.q1)) { return false; } if (!ObjectUtilities.equal(this.q3, that.q3)) { return false; } if (!ObjectUtilities.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtilities.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtilities.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtilities.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtilities.equal(this.outliers, that.outliers)) { return false; } return true; } BoxAndWhiskerItem(Number mean,
                             Number median,
                             Number q1,
                             Number q3,
                             Number minRegularValue,
                             Number maxRegularValue,
                             Number minOutlier,
                             Number maxOutlier,
                             List<Number> outliers);  BoxAndWhiskerItem(double mean, double median, double q1, double q3,
            double minRegularValue, double maxRegularValue, double minOutlier,
            double maxOutlier, List<Number> outliers); Number getMean(); Number getMedian(); Number getQ1(); Number getQ3(); Number getMinRegularValue(); Number getMaxRegularValue(); Number getMinOutlier(); Number getMaxOutlier(); List<Number> getOutliers(); @Override String toString(); @Override boolean equals(Object obj); }
BoxAndWhiskerItem implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtilities.equal(this.mean, that.mean)) { return false; } if (!ObjectUtilities.equal(this.median, that.median)) { return false; } if (!ObjectUtilities.equal(this.q1, that.q1)) { return false; } if (!ObjectUtilities.equal(this.q3, that.q3)) { return false; } if (!ObjectUtilities.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtilities.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtilities.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtilities.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtilities.equal(this.outliers, that.outliers)) { return false; } return true; } BoxAndWhiskerItem(Number mean,
                             Number median,
                             Number q1,
                             Number q3,
                             Number minRegularValue,
                             Number maxRegularValue,
                             Number minOutlier,
                             Number maxOutlier,
                             List<Number> outliers);  BoxAndWhiskerItem(double mean, double median, double q1, double q3,
            double minRegularValue, double maxRegularValue, double minOutlier,
            double maxOutlier, List<Number> outliers); Number getMean(); Number getMedian(); Number getQ1(); Number getQ3(); Number getMinRegularValue(); Number getMaxRegularValue(); Number getMinOutlier(); Number getMaxOutlier(); List<Number> getOutliers(); @Override String toString(); @Override boolean equals(Object obj);  }