List of usage examples for org.jfree.data.general DefaultKeyedValueDataset getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.jfree.data.general.DefaultKeyedValueDatasetTest.java
/** * Confirm that cloning works./*w w w. j ava2 s .co m*/ */ @Test public void testCloning() throws CloneNotSupportedException { DefaultKeyedValueDataset d1 = new DefaultKeyedValueDataset("Test", new Double(45.5)); DefaultKeyedValueDataset d2 = (DefaultKeyedValueDataset) d1.clone(); assertTrue(d1 != d2); assertTrue(d1.getClass() == d2.getClass()); assertTrue(d1.equals(d2)); }