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