Example usage for org.jfree.data.gantt Task getClass

List of usage examples for org.jfree.data.gantt Task getClass

Introduction

In this page you can find the example usage for org.jfree.data.gantt Task 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.gantt.TaskTest.java

/**
 * Confirm that cloning works./*  w ww .  j  a  v  a 2  s .com*/
 */
@Test
public void testCloning() throws CloneNotSupportedException {
    Task t1 = new Task("T", new Date(1), new Date(2));
    Task t2 = (Task) t1.clone();
    assertTrue(t1 != t2);
    assertTrue(t1.getClass() == t2.getClass());
    assertTrue(t1.equals(t2));
}