Example usage for org.jfree.data.xy IntervalXYDelegate getClass

List of usage examples for org.jfree.data.xy IntervalXYDelegate getClass

Introduction

In this page you can find the example usage for org.jfree.data.xy IntervalXYDelegate 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.xy.IntervalXYDelegateTest.java

/**
 * Confirm that cloning works./*  w  w  w  .  j  a  v  a  2 s  .c  o  m*/
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    XYSeries s1 = new XYSeries("Series");
    s1.add(1.2, 3.4);
    XYSeriesCollection c1 = new XYSeriesCollection();
    c1.addSeries(s1);
    IntervalXYDelegate d1 = new IntervalXYDelegate(c1);
    IntervalXYDelegate d2 = (IntervalXYDelegate) d1.clone();
    assertTrue(d1 != d2);
    assertTrue(d1.getClass() == d2.getClass());
    assertTrue(d1.equals(d2));
}