Example usage for org.jfree.data.statistics HistogramBin equals

List of usage examples for org.jfree.data.statistics HistogramBin equals

Introduction

In this page you can find the example usage for org.jfree.data.statistics HistogramBin equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Tests this object for equality with an arbitrary object.

Usage

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));
}