List of usage examples for org.jfree.data.time Quarter hashCode
@Override public int hashCode()
From source file:org.jfree.data.time.QuarterTest.java
/** * Two objects that are equal are required to return the same hashCode. */// ww w . ja v a2 s .c om @Test public void testHashcode() { Quarter q1 = new Quarter(2, 2003); Quarter q2 = new Quarter(2, 2003); assertTrue(q1.equals(q2)); int h1 = q1.hashCode(); int h2 = q2.hashCode(); assertEquals(h1, h2); }