Example usage for org.jfree.data.statistics BoxAndWhiskerItem equals

List of usage examples for org.jfree.data.statistics BoxAndWhiskerItem equals

Introduction

In this page you can find the example usage for org.jfree.data.statistics BoxAndWhiskerItem equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Tests this object for equality with an arbitrary object.

Usage

From source file:org.jfree.data.statistics.BoxAndWhiskerItemTest.java

/**
 * Confirm that the equals method can distinguish all the required fields.
 *//*from ww  w. ja  va2  s  .c  o  m*/
@Test
public void testEquals() {

    BoxAndWhiskerItem i1 = new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0),
            new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), new Double(8.0),
            new ArrayList());
    BoxAndWhiskerItem i2 = new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0),
            new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), new Double(8.0),
            new ArrayList());
    assertTrue(i1.equals(i2));
    assertTrue(i2.equals(i1));
}