List of usage examples for org.jfree.data DomainOrder hashCode
@Override public int hashCode()
From source file:org.jfree.data.DomainOrderTest.java
/** * Two objects that are equal are required to return the same hashCode. *///from ww w . j a va2 s . co m @Test public void testHashCode() { DomainOrder d1 = DomainOrder.ASCENDING; DomainOrder d2 = DomainOrder.ASCENDING; assertTrue(d1.equals(d2)); int h1 = d1.hashCode(); int h2 = d2.hashCode(); assertEquals(h1, h2); }