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

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

Introduction

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

/**
 * Confirm that cloning works.//from   ww  w .  j  a va 2s . co  m
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    XYSeries s1 = new XYSeries("Series");
    s1.add(1.0, 1.1);
    XYSeries s2 = (XYSeries) s1.clone();
    assertTrue(s1 != s2);
    assertTrue(s1.getClass() == s2.getClass());
    assertTrue(s1.equals(s2));
}