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

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

Introduction

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

/**
 * Confirm that cloning works.//from   w  ww  .j  a  v a 2 s  . c o m
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    XYIntervalSeries s1 = new XYIntervalSeries("s1");
    s1.add(1.0, 0.5, 1.5, 2.0, 1.9, 2.01);
    XYIntervalSeries s2 = (XYIntervalSeries) s1.clone();
    assertTrue(s1 != s2);
    assertTrue(s1.getClass() == s2.getClass());
    assertTrue(s1.equals(s2));
}