@Test public void testHashcode() { Quarter q1 = new Quarter(2, 2003); Quarter q2 = new Quarter(2, 2003); assertEquals(q1, q2); int h1 = q1.hashCode(); int h2 = q2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 17; result = 37 * result + this.quarter; result = 37 * result + this.year; return result; }
Quarter extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + this.quarter; result = 37 * result + this.year; return result; } }
Quarter extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + this.quarter; result = 37 * result + this.year; return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); }
Quarter extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + this.quarter; result = 37 * result + this.year; return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); int getQuarter(); Year getYear(); int getYearValue(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); static Quarter parseQuarter(String s); }
Quarter extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; result = 37 * result + this.quarter; result = 37 * result + this.year; return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); int getQuarter(); Year getYear(); int getYearValue(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); static Quarter parseQuarter(String s); static final int FIRST_QUARTER; static final int LAST_QUARTER; static final int[] FIRST_MONTH_IN_QUARTER; static final int[] LAST_MONTH_IN_QUARTER; }