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

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

Introduction

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

/**
 * Confirm that cloning works.//from   w  ww .ja  v a 2  s. co  m
 */
@Test
public void testCloning() {
    XYDataItem i1 = new XYDataItem(1.0, 1.1);
    XYDataItem i2 = (XYDataItem) i1.clone();
    assertTrue(i1 != i2);
    assertTrue(i1.getClass() == i2.getClass());
    assertTrue(i1.equals(i2));
}