Module java.base
Package java.util

# Class Calendar

=
public abstract class Calendar
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Calendar>

## Nested Types

- = Builder

## Fields

- =
  public static final int ALL_STYLES = 0
- =
  public static final int AM = 0
- =
  public static final int AM_PM = 9
- =
  public static final int APRIL = 3
- =
  public static final int AUGUST = 7
- =
  public static final int DATE = 5
- =
  public static final int DAY_OF_MONTH = 5
- =
  public static final int DAY_OF_WEEK = 7
- =
  public static final int DAY_OF_WEEK_IN_MONTH = 8
- =
  public static final int DAY_OF_YEAR = 6
- =
  public static final int DECEMBER = 11
- =
  public static final int DST_OFFSET = 16
- =
  public static final int ERA = 0
- =
  public static final int FEBRUARY = 1
- =
  public static final int FIELD_COUNT = 17
- =
  public static final int FRIDAY = 6
- =
  public static final int HOUR = 10
- =
  public static final int HOUR_OF_DAY = 11
- =
  public static final int JANUARY = 0
- =
  public static final int JULY = 6
- =
  public static final int JUNE = 5
- =
  public static final int LONG = 2
- =
  public static final int LONG_FORMAT = 2
- =
  public static final int LONG_STANDALONE = 32770
- =
  public static final int MARCH = 2
- =
  public static final int MAY = 4
- =
  public static final int MILLISECOND = 14
- =
  public static final int MINUTE = 12
- =
  public static final int MONDAY = 2
- =
  public static final int MONTH = 2
- =
  public static final int NARROW_FORMAT = 4
- =
  public static final int NARROW_STANDALONE = 32772
- =
  public static final int NOVEMBER = 10
- =
  public static final int OCTOBER = 9
- =
  public static final int PM = 1
- =
  public static final int SATURDAY = 7
- =
  public static final int SECOND = 13
- =
  public static final int SEPTEMBER = 8
- =
  public static final int SHORT = 1
- =
  public static final int SHORT_FORMAT = 1
- =
  public static final int SHORT_STANDALONE = 32769
- =
  public static final int SUNDAY = 1
- =
  public static final int THURSDAY = 5
- =
  public static final int TUESDAY = 3
- =
  public static final int UNDECIMBER = 12
- =
  public static final int WEDNESDAY = 4
- =
  public static final int WEEK_OF_MONTH = 4
- =
  public static final int WEEK_OF_YEAR = 3
- =
  public static final int YEAR = 1
- =
  public static final int ZONE_OFFSET = 15
- =
  protected boolean areFieldsSet
- =
  protected int[] fields
- =
  protected boolean[] isSet
- =
  protected boolean isTimeSet
- =
  protected long time

## Constructors

- =
  protected Calendar()
- =
  protected Calendar(java.util.TimeZone arg0, java.util.Locale arg1)

## Methods

- =
  public abstract void add(int arg0, int arg1)
- =
  public boolean after(java.lang.Object arg0)
- =
  public boolean before(java.lang.Object arg0)
- =
  public final void clear()
- =
  public final void clear(int arg0)
- =
  public java.lang.Object clone()
- =
  public int compareTo(java.util.Calendar arg0)
- =
  protected void complete()
- =
  protected abstract void computeFields()
- =
  protected abstract void computeTime()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public int get(int arg0)
- =
  public int getActualMaximum(int arg0)
- =
  public int getActualMinimum(int arg0)
- =
  public static java.util.Set<java.lang.String> getAvailableCalendarTypes()
- =
  public static java.util.Locale[] getAvailableLocales()
- =
  public java.lang.String getCalendarType()
- =
  public java.lang.String getDisplayName(int arg0, int arg1, java.util.Locale arg2)
- =
  public java.util.Map<java.lang.String, java.lang.Integer> getDisplayNames(int arg0, int arg1, java.util.Locale arg2)
- =
  public int getFirstDayOfWeek()
- =
  public abstract int getGreatestMinimum(int arg0)
- =
  public static java.util.Calendar getInstance()
- =
  public static java.util.Calendar getInstance(java.util.Locale arg0)
- =
  public static java.util.Calendar getInstance(java.util.TimeZone arg0)
- =
  public static java.util.Calendar getInstance(java.util.TimeZone arg0, java.util.Locale arg1)
- =
  public abstract int getLeastMaximum(int arg0)
- =
  public abstract int getMaximum(int arg0)
- =
  public int getMinimalDaysInFirstWeek()
- =
  public abstract int getMinimum(int arg0)
- =
  public final java.util.Date getTime()
- =
  public long getTimeInMillis()
- =
  public java.util.TimeZone getTimeZone()
- =
  public int getWeekYear()
- =
  public int getWeeksInWeekYear()
- =
  public int hashCode()
- =
  protected final int internalGet(int arg0)
- =
  public boolean isLenient()
- =
  public final boolean isSet(int arg0)
- =
  public boolean isWeekDateSupported()
- =
  public abstract void roll(int arg0, boolean arg1)
- =
  public void roll(int arg0, int arg1)
- =
  public void set(int arg0, int arg1)
- =
  public final void set(int arg0, int arg1, int arg2)
- =
  public final void set(int arg0, int arg1, int arg2, int arg3, int arg4)
- =
  public final void set(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
- =
  public void setFirstDayOfWeek(int arg0)
- =
  public void setLenient(boolean arg0)
- =
  public void setMinimalDaysInFirstWeek(int arg0)
- =
  public final void setTime(java.util.Date arg0)
- =
  public void setTimeInMillis(long arg0)
- =
  public void setTimeZone(java.util.TimeZone arg0)
- =
  public void setWeekDate(int arg0, int arg1, int arg2)
- =
  public final java.time.Instant toInstant()
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=-1807547505821590642

### Serialized Fields

- =
  boolean areFieldsSet
- =
  int[] fields
- =
  int firstDayOfWeek
- =
  boolean[] isSet
- =
  boolean isTimeSet
- =
  boolean lenient
- =
  int minimalDaysInFirstWeek
- =
  int nextStamp
- =
  int serialVersionOnStream
- =
  long time
- =
  java.util.TimeZone zone

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.