List of usage examples for org.jfree.data RangeType hashCode
@Override public int hashCode()
From source file:org.jfree.data.RangeTypeTest.java
/** * Two objects that are equal are required to return the same hashCode. *//*w w w .j av a2 s .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); }