List of usage examples for org.jfree.data.xy OHLCDataItem equals
@Override public boolean equals(Object obj)
From source file:org.jfree.data.xy.OHLCDataItemTest.java
/** * Confirm that the equals method can distinguish all the required fields. *//* w w w . j av a2 s .c o m*/ @Test public void testEquals() { OHLCDataItem i1 = new OHLCDataItem(new Date(1L), 1.0, 2.0, 3.0, 4.0, 5.0); OHLCDataItem i2 = new OHLCDataItem(new Date(1L), 1.0, 2.0, 3.0, 4.0, 5.0); assertTrue(i1.equals(i2)); assertTrue(i2.equals(i1)); }