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

Diff of /classpath/java/util/Calendar.java

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

revision 1.25.2.1 by tromey, Sun Aug 15 07:59:51 2004 UTC revision 1.25.2.2 by gnu_andrew, Thu Jan 13 22:40:40 2005 UTC
# Line 546  public abstract class Calendar Line 546  public abstract class Calendar
546     * if they are invalid.     * if they are invalid.
547     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
548     * @return the value of the specified field     * @return the value of the specified field
549     *     * @throws ArrayIndexOutOfBoundsException if the field is outside
550       *         the valid range.  The value of field must be >= 0 and
551       *         <= <code>FIELD_COUNT</code>.
552     * @specnote Not final since JDK 1.4     * @specnote Not final since JDK 1.4
553     */     */
554    public int get(int field)    public int get(int field)
# Line 564  public abstract class Calendar Line 566  public abstract class Calendar
566     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
567     * @return the value of the specified field, undefined if     * @return the value of the specified field, undefined if
568     * <code>areFieldsSet</code> or <code>isSet[field]</code> is false.     * <code>areFieldsSet</code> or <code>isSet[field]</code> is false.
569       * @throws ArrayIndexOutOfBoundsException if the field is outside
570       *         the valid range.  The value of field must be >= 0 and
571       *         <= <code>FIELD_COUNT</code>.
572     */     */
573    protected final int internalGet(int field)    protected final int internalGet(int field)
574    {    {
# Line 575  public abstract class Calendar Line 580  public abstract class Calendar
580     * the time in milliseconds.     * the time in milliseconds.
581     * @param field the time field. One of the time field constants     * @param field the time field. One of the time field constants
582     * @param value the value to be set.     * @param value the value to be set.
583     *     * @throws ArrayIndexOutOfBoundsException if field is outside
584       *         the valid range.  The value of field must be >= 0 and
585       *         <= <code>FIELD_COUNT</code>.
586     * @specnote Not final since JDK 1.4     * @specnote Not final since JDK 1.4
587     */     */
588    public void set(int field, int value)    public void set(int field, int value)
# Line 679  public abstract class Calendar Line 686  public abstract class Calendar
686    /**    /**
687     * Clears the values of the specified time field.     * Clears the values of the specified time field.
688     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
689       * @throws ArrayIndexOutOfBoundsException if field is outside
690       *         the valid range.  The value of field must be >= 0 and
691       *         <= <code>FIELD_COUNT</code>.
692     */     */
693    public final void clear(int field)    public final void clear(int field)
694    {    {
# Line 691  public abstract class Calendar Line 701  public abstract class Calendar
701    /**    /**
702     * Determines if the specified field has a valid value.     * Determines if the specified field has a valid value.
703     * @return true if the specified field has a value.     * @return true if the specified field has a value.
704       * @throws ArrayIndexOutOfBoundsException if the field is outside
705       *         the valid range.  The value of field must be >= 0 and
706       *         <= <code>FIELD_COUNT</code>.
707     */     */
708    public final boolean isSet(int field)    public final boolean isSet(int field)
709    {    {
# Line 764  public abstract class Calendar Line 777  public abstract class Calendar
777     * it does what you expect: Jan, 25 + 10 Days is Feb, 4.     * it does what you expect: Jan, 25 + 10 Days is Feb, 4.
778     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
779     * @param amount the amount of time.     * @param amount the amount of time.
780       * @throws ArrayIndexOutOfBoundsException if the field is outside
781       *         the valid range.  The value of field must be >= 0 and
782       *         <= <code>FIELD_COUNT</code>.
783     */     */
784    public abstract void add(int field, int amount);    public abstract void add(int field, int amount);
785    
# Line 778  public abstract class Calendar Line 794  public abstract class Calendar
794     * The date June, 31 is automatically converted to July, 1.     * The date June, 31 is automatically converted to July, 1.
795     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
796     * @param up the direction, true for up, false for down.     * @param up the direction, true for up, false for down.
797       * @throws ArrayIndexOutOfBoundsException if the field is outside
798       *         the valid range.  The value of field must be >= 0 and
799       *         <= <code>FIELD_COUNT</code>.
800     */     */
801    public abstract void roll(int field, boolean up);    public abstract void roll(int field, boolean up);
802    
# Line 791  public abstract class Calendar Line 810  public abstract class Calendar
810     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
811     * @param amount the amount to roll by, positive for rolling up,     * @param amount the amount to roll by, positive for rolling up,
812     * negative for rolling down.       * negative for rolling down.  
813       * @throws ArrayIndexOutOfBoundsException if the field is outside
814       *         the valid range.  The value of field must be >= 0 and
815       *         <= <code>FIELD_COUNT</code>.
816     * @since JDK1.2     * @since JDK1.2
817     */     */
818    public void roll(int field, int amount)    public void roll(int field, int amount)
# Line 926  public abstract class Calendar Line 948  public abstract class Calendar
948     * This value is dependent on the values of the other fields.     * This value is dependent on the values of the other fields.
949     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
950     * @return the actual minimum value.     * @return the actual minimum value.
951       * @throws ArrayIndexOutOfBoundsException if the field is outside
952       *         the valid range.  The value of field must be >= 0 and
953       *         <= <code>FIELD_COUNT</code>.
954     * @since jdk1.2     * @since jdk1.2
955     */     */
956    public int getActualMinimum(int field)    public int getActualMinimum(int field)
# Line 949  public abstract class Calendar Line 974  public abstract class Calendar
974     * This value is dependent on the values of the other fields.     * This value is dependent on the values of the other fields.
975     * @param field the time field. One of the time field constants.     * @param field the time field. One of the time field constants.
976     * @return the actual maximum value.       * @return the actual maximum value.  
977       * @throws ArrayIndexOutOfBoundsException if the field is outside
978       *         the valid range.  The value of field must be >= 0 and
979       *         <= <code>FIELD_COUNT</code>.
980     * @since jdk1.2     * @since jdk1.2
981     */     */
982    public int getActualMaximum(int field)    public int getActualMaximum(int field)

Legend:
Removed from v.1.25.2.1  
changed lines
  Added in v.1.25.2.2

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