@Test public void testHashCode() { RelativeDateFormat df1 = new RelativeDateFormat(123L); RelativeDateFormat df2 = new RelativeDateFormat(123L); assertEquals(df1, df2); int h1 = df1.hashCode(); int h2 = df2.hashCode(); assertEquals(h1, h2); }
@Override public int hashCode() { int result = 193; result = 37 * result + (int) (this.baseMillis ^ (this.baseMillis >>> 32)); result = 37 * result + this.positivePrefix.hashCode(); result = 37 * result + this.daySuffix.hashCode(); result = 37 * result + this.hourSuffix.hashCode(); result = 37 * result + this.minuteSuffix.hashCode(); result = 37 * result + this.secondSuffix.hashCode(); result = 37 * result + this.secondFormatter.hashCode(); return result; }
RelativeDateFormat extends DateFormat { @Override public int hashCode() { int result = 193; result = 37 * result + (int) (this.baseMillis ^ (this.baseMillis >>> 32)); result = 37 * result + this.positivePrefix.hashCode(); result = 37 * result + this.daySuffix.hashCode(); result = 37 * result + this.hourSuffix.hashCode(); result = 37 * result + this.minuteSuffix.hashCode(); result = 37 * result + this.secondSuffix.hashCode(); result = 37 * result + this.secondFormatter.hashCode(); return result; } }
RelativeDateFormat extends DateFormat { @Override public int hashCode() { int result = 193; result = 37 * result + (int) (this.baseMillis ^ (this.baseMillis >>> 32)); result = 37 * result + this.positivePrefix.hashCode(); result = 37 * result + this.daySuffix.hashCode(); result = 37 * result + this.hourSuffix.hashCode(); result = 37 * result + this.minuteSuffix.hashCode(); result = 37 * result + this.secondSuffix.hashCode(); result = 37 * result + this.secondFormatter.hashCode(); return result; } RelativeDateFormat();  RelativeDateFormat(Date time);  RelativeDateFormat(long baseMillis); }
RelativeDateFormat extends DateFormat { @Override public int hashCode() { int result = 193; result = 37 * result + (int) (this.baseMillis ^ (this.baseMillis >>> 32)); result = 37 * result + this.positivePrefix.hashCode(); result = 37 * result + this.daySuffix.hashCode(); result = 37 * result + this.hourSuffix.hashCode(); result = 37 * result + this.minuteSuffix.hashCode(); result = 37 * result + this.secondSuffix.hashCode(); result = 37 * result + this.secondFormatter.hashCode(); return result; } RelativeDateFormat();  RelativeDateFormat(Date time);  RelativeDateFormat(long baseMillis); long getBaseMillis(); void setBaseMillis(long baseMillis); boolean getShowZeroDays(); void setShowZeroDays(boolean show); boolean getShowZeroHours(); void setShowZeroHours(boolean show); String getPositivePrefix(); void setPositivePrefix(String prefix); void setDayFormatter(NumberFormat formatter); String getDaySuffix(); void setDaySuffix(String suffix); void setHourFormatter(NumberFormat formatter); String getHourSuffix(); void setHourSuffix(String suffix); void setMinuteFormatter(NumberFormat formatter); String getMinuteSuffix(); void setMinuteSuffix(String suffix); String getSecondSuffix(); void setSecondSuffix(String suffix); void setSecondFormatter(NumberFormat formatter); @Override StringBuffer format(Date date, StringBuffer toAppendTo,
                               FieldPosition fieldPosition); @Override Date parse(String source, ParsePosition pos); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); static void main(String[] args); }
RelativeDateFormat extends DateFormat { @Override public int hashCode() { int result = 193; result = 37 * result + (int) (this.baseMillis ^ (this.baseMillis >>> 32)); result = 37 * result + this.positivePrefix.hashCode(); result = 37 * result + this.daySuffix.hashCode(); result = 37 * result + this.hourSuffix.hashCode(); result = 37 * result + this.minuteSuffix.hashCode(); result = 37 * result + this.secondSuffix.hashCode(); result = 37 * result + this.secondFormatter.hashCode(); return result; } RelativeDateFormat();  RelativeDateFormat(Date time);  RelativeDateFormat(long baseMillis); long getBaseMillis(); void setBaseMillis(long baseMillis); boolean getShowZeroDays(); void setShowZeroDays(boolean show); boolean getShowZeroHours(); void setShowZeroHours(boolean show); String getPositivePrefix(); void setPositivePrefix(String prefix); void setDayFormatter(NumberFormat formatter); String getDaySuffix(); void setDaySuffix(String suffix); void setHourFormatter(NumberFormat formatter); String getHourSuffix(); void setHourSuffix(String suffix); void setMinuteFormatter(NumberFormat formatter); String getMinuteSuffix(); void setMinuteSuffix(String suffix); String getSecondSuffix(); void setSecondSuffix(String suffix); void setSecondFormatter(NumberFormat formatter); @Override StringBuffer format(Date date, StringBuffer toAppendTo,
                               FieldPosition fieldPosition); @Override Date parse(String source, ParsePosition pos); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); static void main(String[] args);  }