List of usage examples for org.jfree.data RangeType equals
@Override public boolean equals(Object obj)
true
if this object is equal to the specified object, and false
otherwise. From source file:org.jfree.data.RangeTypeTest.java
/** * Two objects that are equal are required to return the same hashCode. *//* w ww. j av a2s . c o m*/ @Test public void testHashCode() { RangeType r1 = RangeType.FULL; RangeType r2 = RangeType.FULL; assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); }