List of usage examples for org.jfree.data.time Minute hashCode
@Override public int hashCode()
From source file:org.jfree.data.time.MinuteTest.java
/** * Two objects that are equal are required to return the same hashCode. *///from w ww. j av a2 s . c o m @Test public void testHashcode() { Minute m1 = new Minute(45, 5, 1, 2, 2003); Minute m2 = new Minute(45, 5, 1, 2, 2003); assertTrue(m1.equals(m2)); int h1 = m1.hashCode(); int h2 = m2.hashCode(); assertEquals(h1, h2); }
From source file:org.jfree.data.time.junit.MinuteTest.java
/** * Two objects that are equal are required to return the same hashCode. *//*from ww w . j ava 2s .c o m*/ public void testHashcode() { Minute m1 = new Minute(45, 5, 1, 2, 2003); Minute m2 = new Minute(45, 5, 1, 2, 2003); assertTrue(m1.equals(m2)); int h1 = m1.hashCode(); int h2 = m2.hashCode(); assertEquals(h1, h2); }