Uses of Class
java.util.Calendar.Builder
| Package | Description |
|---|---|
| java.util |
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
-
Uses of Calendar.Builder in java.util
Methods in java.util that return Calendar.Builder Modifier and Type Method Description Calendar.BuilderCalendar.Builder. set(int field, int value)Sets thefieldparameter to the givenvalue.Calendar.BuilderCalendar.Builder. setCalendarType(String type)Sets the calendar type parameter to the giventype.Calendar.BuilderCalendar.Builder. setDate(int year, int month, int dayOfMonth)Sets the date field parameters to the values given byyear,month, anddayOfMonth.Calendar.BuilderCalendar.Builder. setFields(int... fieldValuePairs)Sets field parameters to their values given byfieldValuePairsthat are pairs of a field and its value.Calendar.BuilderCalendar.Builder. setInstant(long instant)Sets the instant parameter to the giveninstantvalue that is a millisecond offset from the Epoch.Calendar.BuilderCalendar.Builder. setInstant(Date instant)Sets the instant parameter to theinstantvalue given by aDate.Calendar.BuilderCalendar.Builder. setLenient(boolean lenient)Sets the lenient mode parameter to the value given bylenient.Calendar.BuilderCalendar.Builder. setLocale(Locale locale)Sets the locale parameter to the givenlocale.Calendar.BuilderCalendar.Builder. setTimeOfDay(int hourOfDay, int minute, int second)Sets the time of day field parameters to the values given byhourOfDay,minute, andsecond.Calendar.BuilderCalendar.Builder. setTimeOfDay(int hourOfDay, int minute, int second, int millis)Sets the time of day field parameters to the values given byhourOfDay,minute,second, andmillis.Calendar.BuilderCalendar.Builder. setTimeZone(TimeZone zone)Sets the time zone parameter to the givenzone.Calendar.BuilderCalendar.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.BuilderCalendar.Builder. setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek)Sets the week definition parameters to the values given byfirstDayOfWeekandminimalDaysInFirstWeekthat are used to determine the first week of a year.