APIdia Launch Partner
Top Fields Constructors Methods
sun.util.calendar

pack-priv final Class ImmutableGregorianDate

extends Date
Class Inheritance
Imports
java.util.Objects, .TimeZone

Field Summary

Modifier and TypeField and Description
private final BaseCalendar.Date
Inherited from sun.util.calendar.BaseCalendar.Date:
cachedFixedDateJan1cachedFixedDateNextJan1cachedYear

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CalendarDate
public CalendarDate
public CalendarDate
public Object
clone()

Overrides sun.util.calendar.CalendarDate.clone.

Returns a copy of this CalendarDate.

public boolean
equals(Object obj)

Overrides sun.util.calendar.CalendarDate.equals.

Indicates whether some other object is "equal to" this one.

public int
public int
public int
getDayOfWeek()

Overrides sun.util.calendar.CalendarDate.getDayOfWeek.

Returns the day of week value.

public Era
public int
public int
public int
public int
public int
public int
public long
public int
public TimeZone
public int
public int
hashCode()

Overrides sun.util.calendar.CalendarDate.hashCode.

Returns a hash code value for this object.

public boolean
public boolean
isLeapYear()

Overrides sun.util.calendar.CalendarDate.isLeapYear.

Returns whether the year represented by this CalendarDate is a leap year.

public boolean
public boolean
isSameDate(CalendarDate date)

Overrides sun.util.calendar.CalendarDate.isSameDate.

Returns whether the specified date is the same date of this CalendarDate.

public CalendarDate
setDate(int year, int month, int dayOfMonth)

Overrides sun.util.calendar.CalendarDate.setDate.

protected void
public CalendarDate
protected void
public CalendarDate
setEra(Era era)

Overrides sun.util.calendar.CalendarDate.setEra.

Sets the era of the date to the specified era.

public CalendarDate
pack-priv void
public CalendarDate
public CalendarDate
public CalendarDate
protected void
public void
public CalendarDate
public CalendarDate
setTimeOfDay(int hours, int minutes, int seconds, int millis)

Overrides sun.util.calendar.CalendarDate.setTimeOfDay.

protected void
public CalendarDate
public CalendarDate
protected void
public String
toString()

Overrides sun.util.calendar.CalendarDate.toString.

Converts calendar date values to a String in the following format.

private void
Inherited from sun.util.calendar.BaseCalendar.Date:
getCachedJan1getCachedYearhithitsetCachesetNormalizedDate

Field Detail

dateback to summary
private final BaseCalendar.Date date

Constructor Detail

ImmutableGregorianDateback to summary
pack-priv ImmutableGregorianDate(BaseCalendar.Date date)

Method Detail

addHoursback to summary
public CalendarDate addHours(int n)

Overrides sun.util.calendar.CalendarDate.addHours.

Annotations
@Override
addMonthback to summary
public CalendarDate addMonth(int n)

Overrides sun.util.calendar.CalendarDate.addMonth.

Annotations
@Override
addYearback to summary
public CalendarDate addYear(int n)

Overrides sun.util.calendar.CalendarDate.addYear.

Annotations
@Override
cloneback to summary
public Object clone()

Overrides sun.util.calendar.CalendarDate.clone.

Doc from sun.util.calendar.CalendarDate.clone.

Returns a copy of this CalendarDate. The TimeZone object, if any, is not cloned.

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Overrides sun.util.calendar.CalendarDate.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getDaylightSavingback to summary
public int getDaylightSaving()

Overrides sun.util.calendar.CalendarDate.getDaylightSaving.

Annotations
@Override
getDayOfMonthback to summary
public int getDayOfMonth()

Overrides sun.util.calendar.CalendarDate.getDayOfMonth.

Annotations
@Override
getDayOfWeekback to summary
public int getDayOfWeek()

Overrides sun.util.calendar.CalendarDate.getDayOfWeek.

Doc from sun.util.calendar.CalendarDate.getDayOfWeek.

Returns the day of week value. If this CalendarDate is not normalized, FIELD_UNDEFINED is returned.

Annotations
@Override
getEraback to summary
public Era getEra()

Overrides sun.util.calendar.CalendarDate.getEra.

Annotations
@Override
getHoursback to summary
public int getHours()

Overrides sun.util.calendar.CalendarDate.getHours.

Annotations
@Override
getMillisback to summary
public int getMillis()

Overrides sun.util.calendar.CalendarDate.getMillis.

Annotations
@Override
getMinutesback to summary
public int getMinutes()

Overrides sun.util.calendar.CalendarDate.getMinutes.

Annotations
@Override
getMonthback to summary
public int getMonth()

Overrides sun.util.calendar.CalendarDate.getMonth.

Annotations
@Override
getNormalizedYearback to summary
public int getNormalizedYear()

Implements abstract sun.util.calendar.BaseCalendar.Date.getNormalizedYear.

Annotations
@Override
getSecondsback to summary
public int getSeconds()

Overrides sun.util.calendar.CalendarDate.getSeconds.

Annotations
@Override
getTimeOfDayback to summary
public long getTimeOfDay()

Overrides sun.util.calendar.CalendarDate.getTimeOfDay.

Annotations
@Override
getYearback to summary
public int getYear()

Overrides sun.util.calendar.CalendarDate.getYear.

Annotations
@Override
getZoneback to summary
public TimeZone getZone()

Overrides sun.util.calendar.CalendarDate.getZone.

Annotations
@Override
getZoneOffsetback to summary
public int getZoneOffset()

Overrides sun.util.calendar.CalendarDate.getZoneOffset.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides sun.util.calendar.CalendarDate.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
isDaylightTimeback to summary
public boolean isDaylightTime()

Overrides sun.util.calendar.CalendarDate.isDaylightTime.

Annotations
@Override
isLeapYearback to summary
public boolean isLeapYear()

Overrides sun.util.calendar.CalendarDate.isLeapYear.

Doc from sun.util.calendar.CalendarDate.isLeapYear.

Returns whether the year represented by this CalendarDate is a leap year. If leap years are not applicable to the calendar system, this method always returns false.

If this CalendarDate hasn't been normalized, false is returned. The normalization must be performed to retrieve the correct leap year information.

Annotations
@Override
isNormalizedback to summary
public boolean isNormalized()

Overrides sun.util.calendar.CalendarDate.isNormalized.

Annotations
@Override
isSameDateback to summary
public boolean isSameDate(CalendarDate date)

Overrides sun.util.calendar.CalendarDate.isSameDate.

Doc from sun.util.calendar.CalendarDate.isSameDate.

Returns whether the specified date is the same date of this CalendarDate. The time of the day fields are ignored for the comparison.

Annotations
@Override
setDateback to summary
public CalendarDate setDate(int year, int month, int dayOfMonth)

Overrides sun.util.calendar.CalendarDate.setDate.

Annotations
@Override
setDaylightSavingback to summary
protected void setDaylightSaving(int daylightSaving)

Overrides sun.util.calendar.CalendarDate.setDaylightSaving.

Annotations
@Override
setDayOfMonthback to summary
public CalendarDate setDayOfMonth(int date)

Overrides sun.util.calendar.CalendarDate.setDayOfMonth.

Annotations
@Override
setDayOfWeekback to summary
protected void setDayOfWeek(int dayOfWeek)

Overrides sun.util.calendar.CalendarDate.setDayOfWeek.

Annotations
@Override
setEraback to summary
public CalendarDate setEra(Era era)

Overrides sun.util.calendar.CalendarDate.setEra.

Doc from sun.util.calendar.CalendarDate.setEra.

Sets the era of the date to the specified era. The default implementation of this method accepts any Era value, including null.

Annotations
@Override
setHoursback to summary
public CalendarDate setHours(int hours)

Overrides sun.util.calendar.CalendarDate.setHours.

Annotations
@Override
setLeapYearback to summary
pack-priv void setLeapYear(boolean leapYear)

Overrides sun.util.calendar.CalendarDate.setLeapYear.

Annotations
@Override
setMillisback to summary
public CalendarDate setMillis(int millis)

Overrides sun.util.calendar.CalendarDate.setMillis.

Annotations
@Override
setMinutesback to summary
public CalendarDate setMinutes(int minutes)

Overrides sun.util.calendar.CalendarDate.setMinutes.

Annotations
@Override
setMonthback to summary
public CalendarDate setMonth(int month)

Overrides sun.util.calendar.CalendarDate.setMonth.

Annotations
@Override
setNormalizedback to summary
protected void setNormalized(boolean normalized)

Overrides sun.util.calendar.CalendarDate.setNormalized.

Annotations
@Override
setNormalizedYearback to summary
public void setNormalizedYear(int normalizedYear)

Implements abstract sun.util.calendar.BaseCalendar.Date.setNormalizedYear.

Annotations
@Override
setSecondsback to summary
public CalendarDate setSeconds(int seconds)

Overrides sun.util.calendar.CalendarDate.setSeconds.

Annotations
@Override
setTimeOfDayback to summary
public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis)

Overrides sun.util.calendar.CalendarDate.setTimeOfDay.

Annotations
@Override
setTimeOfDayback to summary
protected void setTimeOfDay(long fraction)

Overrides sun.util.calendar.CalendarDate.setTimeOfDay.

Annotations
@Override
setYearback to summary
public CalendarDate setYear(int year)

Overrides sun.util.calendar.CalendarDate.setYear.

Annotations
@Override
setZoneback to summary
public CalendarDate setZone(TimeZone zoneinfo)

Overrides sun.util.calendar.CalendarDate.setZone.

Annotations
@Override
setZoneOffsetback to summary
protected void setZoneOffset(int offset)

Overrides sun.util.calendar.CalendarDate.setZoneOffset.

Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.util.calendar.CalendarDate.toString.

Doc from sun.util.calendar.CalendarDate.toString.

Converts calendar date values to a String in the following format.

    yyyy-MM-dd'T'HH:mm:ss.SSSz
Annotations
@Override
unsupportedback to summary
private void unsupported()