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

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

Introduction

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

/**
 * Some checks for the clone() method./* w  w w  .java2  s .  c  om*/
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    YIntervalDataItem item1 = new YIntervalDataItem(1.0, 2.0, 1.5, 2.5);
    YIntervalDataItem item2 = (YIntervalDataItem) item1.clone();
    assertTrue(item1 != item2);
    assertTrue(item1.getClass() == item2.getClass());
    assertTrue(item1.equals(item2));
}