868 |
|
|
869 |
areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true; |
areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true; |
870 |
} |
} |
871 |
|
|
872 |
|
/** |
873 |
|
* Return a hash code for this object, following the general contract |
874 |
|
* specified by {@link Object#hashCode()}. |
875 |
|
* @return the hash code |
876 |
|
*/ |
877 |
|
public int hashCode() |
878 |
|
{ |
879 |
|
int val = (int) ((gregorianCutover >>> 32) ^ (gregorianCutover & 0xffffffff)); |
880 |
|
return super.hashCode() ^ val; |
881 |
|
} |
882 |
|
|
883 |
/** |
/** |
884 |
* Compares the given calendar with this. An object, o, is |
* Compares the given calendar with this. An object, o, is |
901 |
return false; |
return false; |
902 |
|
|
903 |
GregorianCalendar cal = (GregorianCalendar) o; |
GregorianCalendar cal = (GregorianCalendar) o; |
904 |
return (cal.getTimeInMillis() == getTimeInMillis()); |
return (cal.gregorianCutover == gregorianCutover |
905 |
|
&& super.equals(o)); |
906 |
} |
} |
907 |
|
|
908 |
/** |
/** |