two objects that are equal are required to return the same hashcode . concode_field_sep double EPSILON concode_field_sep void testConstructor1 concode_elem_sep void testCloning concode_elem_sep void testSerialization concode_elem_sep void testEquals
void function ( ) { OHLCItem loc0 = new OHLCItem ( new Year ( 2009 ) , 2.0 , 4.0 , 1.0 , 3.0 ) ; OHLCItem loc1 = new OHLCItem ( new Year ( 2009 ) , 2.0 , 4.0 , 1.0 , 3.0 ) ; assertTrue ( loc0 . equals ( loc1 ) ) ; int loc2 = loc0 . hashCode ( ) ; int loc3 = loc1 . hashCode ( ) ; assertEquals ( loc2 , loc3 ) ; }