@Override public boolean equals(Object o) { if (o == null) return false; DateFormatKey key = (DateFormatKey)o; return format.equals(key.format) && locale.equals(key.locale) && timeZone.equals(key.timeZone); } }
DateFormatKey(CalendarUtils.Format format, Locale locale, TimeZone timeZone) { this.format = format; this.locale = locale; this.timeZone = timeZone; this.hashCode = format.hashCode() + locale.hashCode() + timeZone.hashCode(); }
@Override public boolean equals(Object o) { if (o == null) return false; DateFormatKey key = (DateFormatKey)o; return format.equals(key.format) && locale.equals(key.locale) && timeZone.equals(key.timeZone); } }
DateFormatKey(CalendarUtils.Format format, Locale locale, TimeZone timeZone) { this.format = format; this.locale = locale; this.timeZone = timeZone; this.hashCode = format.hashCode() + locale.hashCode() + timeZone.hashCode(); }
@Override public boolean equals(Object o) { if (o == null) return false; DateFormatKey key = (DateFormatKey)o; return format.equals(key.format) && locale.equals(key.locale) && timeZone.equals(key.timeZone); } }
DateFormatKey(CalendarUtils.Format format, Locale locale, TimeZone timeZone) { this.format = format; this.locale = locale; this.timeZone = timeZone; this.hashCode = format.hashCode() + locale.hashCode() + timeZone.hashCode(); }