List of usage examples for org.jfree.data.statistics BoxAndWhiskerItem equals
@Override public boolean equals(Object obj)
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)); }