Example usage for org.jfree.data.general DefaultKeyedValueDataset getClass

List of usage examples for org.jfree.data.general DefaultKeyedValueDataset getClass

Introduction

In this page you can find the example usage for org.jfree.data.general DefaultKeyedValueDataset 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.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));
}