Example usage for org.jfree.data.xy OHLCDataItem equals

List of usage examples for org.jfree.data.xy OHLCDataItem equals

Introduction

In this page you can find the example usage for org.jfree.data.xy OHLCDataItem equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks this instance for equality with an arbitrary object.

Usage

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));
}