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

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

Introduction

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

/**
 * Some checks for the clone() method./*from  w ww  .j  a v a 2 s .  c  o  m*/
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    XYIntervalDataItem item1 = new XYIntervalDataItem(1.0, 0.5, 1.5, 2.0, 1.9, 2.1);
    XYIntervalDataItem item2 = (XYIntervalDataItem) item1.clone();
    assertTrue(item1 != item2);
    assertTrue(item1.getClass() == item2.getClass());
    assertTrue(item1.equals(item2));
}