Example usage for org.jfree.data ComparableObjectItem getClass

List of usage examples for org.jfree.data ComparableObjectItem getClass

Introduction

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

/**
 * Some checks for the clone() method.//www. j  av a  2  s  .  c o  m
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    ComparableObjectItem item1 = new ComparableObjectItem(new Integer(1), "XYZ");
    ComparableObjectItem item2 = (ComparableObjectItem) item1.clone();
    assertNotSame(item1, item2);
    assertSame(item1.getClass(), item2.getClass());
    assertEquals(item1, item2);
}