List of usage examples for org.jfree.data.statistics HistogramBin equals
@Override public boolean equals(Object obj)
From source file:org.jfree.data.statistics.HistogramBinTest.java
/** * Confirm that cloning works./*from ww w .ja va2 s .co m*/ */ @Test public void testCloning() throws CloneNotSupportedException { double start = 10.0; double end = 20.0; HistogramBin b1 = new HistogramBin(start, end); HistogramBin b2 = (HistogramBin) b1.clone(); assertTrue(b1 != b2); assertTrue(b1.getClass() == b2.getClass()); assertTrue(b1.equals(b2)); }