@Test public void testHashcode() { Year y1 = new Year(1988); Year y2 = new Year(1988); assertEquals(y1, y2); int h1 = y1.hashCode(); int h2 = y2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 17; int c = this.year; result = 37 * result + c; return result; }
Year extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; int c = this.year; result = 37 * result + c; return result; } }
Year extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; int c = this.year; result = 37 * result + c; return result; } Year();  Year(int year);  Year(Date time);  Year(Date time, TimeZone zone, Locale locale); }
Year extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; int c = this.year; result = 37 * result + c; return result; } Year();  Year(int year);  Year(Date time);  Year(Date time, TimeZone zone, Locale locale); int getYear(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); static Year parseYear(String s); }
Year extends RegularTimePeriod implements Serializable { @Override public int hashCode() { int result = 17; int c = this.year; result = 37 * result + c; return result; } Year();  Year(int year);  Year(Date time);  Year(Date time, TimeZone zone, Locale locale); int getYear(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); static Year parseYear(String s); static final int MINIMUM_YEAR; static final int MAXIMUM_YEAR; }