| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
Calendar.Builder.set(int field, int value)
Sets the
field parameter to the given
value.
|
Calendar |
Calendar.Builder.setCalendarType(String
Sets the calendar type parameter to the given
type.
|
Calendar |
Calendar.Builder.setDate(int year, int month, int dayOfMonth)
Sets the date field parameters to the values given by
year,
month, and
dayOfMonth.
|
Calendar |
Calendar.Builder.setFields(int... fieldValuePairs)
Sets field parameters to their values given by
fieldValuePairs that are pairs of a field and its value.
|
Calendar |
Calendar.Builder.setInstant(Date
Sets the instant parameter to the
instant value given by a
Date.
|
Calendar |
Calendar.Builder.setInstant(long instant)
Sets the instant parameter to the given
instant value that is a millisecond offset from
the Epoch.
|
Calendar |
Calendar.Builder.setLenient(boolean lenient)
Sets the lenient mode parameter to the value given by
lenient.
|
Calendar |
Calendar.Builder.setLocale(Locale
Sets the locale parameter to the given
locale.
|
Calendar |
Calendar.Builder.setTimeOfDay(int hourOfDay, int minute, int second)
Sets the time of day field parameters to the values given by
hourOfDay,
minute, and
second.
|
Calendar |
Calendar.Builder.setTimeOfDay(int hourOfDay, int minute, int second, int millis)
Sets the time of day field parameters to the values given by
hourOfDay,
minute,
second, and
millis.
|
Calendar |
Calendar.Builder.setTimeZone(TimeZone
Sets the time zone parameter to the given
zone.
|
Calendar |
Calendar.Builder.setWeekDate(int weekYear, int weekOfYear, int dayOfWeek)
Sets the week-based date parameters to the values with the given date specifiers - week year, week of year, and day of week.
|
Calendar |
Calendar.Builder.setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek)
Sets the week definition parameters to the values given by
firstDayOfWeek and
minimalDaysInFirstWeek that are used to determine the
first week of a year.
|