List of usage examples for org.jfree.data DataUtilities equal
public static boolean equal(double[][] a, double[][] b)
From source file:org.jfree.data.general.DefaultHeatMapDataset.java
/** * Tests this dataset for equality with an arbitrary object. * * @param obj the object ({@code null} permitted). * * @return A boolean./*from w ww . j av a2 s .c o m*/ */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DefaultHeatMapDataset)) { return false; } DefaultHeatMapDataset that = (DefaultHeatMapDataset) obj; if (this.xSamples != that.xSamples) { return false; } if (this.ySamples != that.ySamples) { return false; } if (this.minX != that.minX) { return false; } if (this.maxX != that.maxX) { return false; } if (this.minY != that.minY) { return false; } if (this.maxY != that.maxY) { return false; } if (!DataUtilities.equal(this.zValues, that.zValues)) { return false; } // can't find any differences return true; }