List of usage examples for org.jfree.data ComparableObjectItem getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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); }