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

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

Introduction

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

/**
 * Some checks for the clone() method./*from w  w w.j a v  a2s .com*/
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);
    XIntervalDataItem item2 = (XIntervalDataItem) item1.clone();
    assertTrue(item1 != item2);
    assertTrue(item1.getClass() == item2.getClass());
    assertTrue(item1.equals(item2));
}