List of usage examples for org.jfree.data.xy XYIntervalSeries getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.jfree.data.xy.XYIntervalSeriesTest.java
/** * Confirm that cloning works.//from w ww .j a v a 2 s . c o m */ @Test public void testCloning() throws CloneNotSupportedException { XYIntervalSeries s1 = new XYIntervalSeries("s1"); s1.add(1.0, 0.5, 1.5, 2.0, 1.9, 2.01); XYIntervalSeries s2 = (XYIntervalSeries) s1.clone(); assertTrue(s1 != s2); assertTrue(s1.getClass() == s2.getClass()); assertTrue(s1.equals(s2)); }