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

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

Introduction

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

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.jfree.data.statistics.HistogramBinTest.java

/**
 * Confirm that cloning works./*from  ww  w .j  ava 2  s. c  om*/
 */
@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));
}