/[classpath]/classpath/java/util/GregorianCalendar.java
ViewVC logotype

Diff of /classpath/java/util/GregorianCalendar.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26.2.11 by gnu_andrew, Tue Aug 2 20:12:29 2005 UTC revision 1.26.2.12 by gnu_andrew, Wed Nov 2 00:43:37 2005 UTC
# Line 868  public class GregorianCalendar extends C Line 868  public class GregorianCalendar extends C
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
# Line 890  public class GregorianCalendar extends C Line 901  public class GregorianCalendar extends C
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    /**    /**

Legend:
Removed from v.1.26.2.11  
changed lines
  Added in v.1.26.2.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26