@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
/** * Overrides hashCode. * @stable ICU 2.0 */ public int hashCode() { return numberFormat.hashCode(); }
/** * Overrides hashCode */ public int hashCode() { return numberFormat.hashCode(); // just enough fields for a reasonable distribution }
/** * Overrides hashCode. * @stable ICU 2.0 */ public int hashCode() { return numberFormat.hashCode(); }
@Override public int hashCode() { return this.numberFormat.hashCode(); }
/** * Overrides hashCode */ public int hashCode() { return numberFormat.hashCode(); // just enough fields for a reasonable distribution }
public int hashCode() { return numberFormat.hashCode(); // just enough fields for a reasonable distribution }
@Override public int hashCode() { return fJdkNfmt.hashCode(); }
/** * Overrides hashCode */ public int hashCode() { return super.hashCode() * 37 + positivePrefix.hashCode(); // just enough fields for a reasonable distribution }
/** * Overrides hashCode */ public int hashCode() { return super.hashCode() * 37 + positivePrefix.hashCode(); // just enough fields for a reasonable distribution }
Numberformat nf = NumberFormat.getNumberInstance(); NumberFormat nf2 = NumberFormat.getNumberInstance(); assert nf != nf2; // passes -- they are different objects assert !nf.equals(nf2); // passes -- they are not equal assert nf.hashCode() != nf2.hashCode(); // fails -- same hash code
/** * Returns a hash code for this instance. * * @return A hash code. */ @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; }
/** * Returns a hash code for this instance. * * @return A hash code. */ @Override public int hashCode() { int result = super.hashCode(); result = 29 * result + (this.formatter != null ? this.formatter.hashCode() : 0); return result; }
/** * Returns a hash code for this instance. * * @return A hash code. */ public int hashCode() { int result = super.hashCode(); result = 29 * result + (this.formatter != null ? this.formatter.hashCode() : 0); return result; }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }
@Override public int hashCode() { return calendar.getFirstDayOfWeek() + calendar.getMinimalDaysInFirstWeek() + calendar.getTimeZone().hashCode() + (calendar.isLenient() ? 1231 : 1237) + numberFormat.hashCode(); }