@Test public void testEquals() { SimpleHistogramDataset d1 = new SimpleHistogramDataset("Dataset 1"); SimpleHistogramDataset d2 = new SimpleHistogramDataset("Dataset 1"); assertEquals(d1, d2); d1.addBin(new SimpleHistogramBin(1.0, 2.0)); assertFalse(d1.equals(d2)); d2.addBin(new SimpleHistogramBin(1.0, 2.0)); assertEquals(d1, d2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SimpleHistogramDataset)) { return false; } SimpleHistogramDataset that = (SimpleHistogramDataset) obj; if (!this.key.equals(that.key)) { return false; } if (this.adjustForBinSize != that.adjustForBinSize) { return false; } if (!this.bins.equals(that.bins)) { return false; } return true; }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SimpleHistogramDataset)) { return false; } SimpleHistogramDataset that = (SimpleHistogramDataset) obj; if (!this.key.equals(that.key)) { return false; } if (this.adjustForBinSize != that.adjustForBinSize) { return false; } if (!this.bins.equals(that.bins)) { return false; } return true; } }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SimpleHistogramDataset)) { return false; } SimpleHistogramDataset that = (SimpleHistogramDataset) obj; if (!this.key.equals(that.key)) { return false; } if (this.adjustForBinSize != that.adjustForBinSize) { return false; } if (!this.bins.equals(that.bins)) { return false; } return true; } SimpleHistogramDataset(Comparable key); }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SimpleHistogramDataset)) { return false; } SimpleHistogramDataset that = (SimpleHistogramDataset) obj; if (!this.key.equals(that.key)) { return false; } if (this.adjustForBinSize != that.adjustForBinSize) { return false; } if (!this.bins.equals(that.bins)) { return false; } return true; } SimpleHistogramDataset(Comparable key); boolean getAdjustForBinSize(); void setAdjustForBinSize(boolean adjust); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); void addBin(SimpleHistogramBin bin); void addObservation(double value); void addObservation(double value, boolean notify); void addObservations(double[] values); void clearObservations(); void removeAllBins(); @Override Number getX(int series, int item); @Override double getXValue(int series, int item); @Override Number getY(int series, int item); @Override double getYValue(int series, int item); @Override Number getStartX(int series, int item); @Override double getStartXValue(int series, int item); @Override Number getEndX(int series, int item); @Override double getEndXValue(int series, int item); @Override Number getStartY(int series, int item); @Override double getStartYValue(int series, int item); @Override Number getEndY(int series, int item); @Override double getEndYValue(int series, int item); @Override boolean equals(Object obj); @Override Object clone(); }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SimpleHistogramDataset)) { return false; } SimpleHistogramDataset that = (SimpleHistogramDataset) obj; if (!this.key.equals(that.key)) { return false; } if (this.adjustForBinSize != that.adjustForBinSize) { return false; } if (!this.bins.equals(that.bins)) { return false; } return true; } SimpleHistogramDataset(Comparable key); boolean getAdjustForBinSize(); void setAdjustForBinSize(boolean adjust); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); void addBin(SimpleHistogramBin bin); void addObservation(double value); void addObservation(double value, boolean notify); void addObservations(double[] values); void clearObservations(); void removeAllBins(); @Override Number getX(int series, int item); @Override double getXValue(int series, int item); @Override Number getY(int series, int item); @Override double getYValue(int series, int item); @Override Number getStartX(int series, int item); @Override double getStartXValue(int series, int item); @Override Number getEndX(int series, int item); @Override double getEndXValue(int series, int item); @Override Number getStartY(int series, int item); @Override double getStartYValue(int series, int item); @Override Number getEndY(int series, int item); @Override double getEndYValue(int series, int item); @Override boolean equals(Object obj); @Override Object clone();  }