Uses of Class
java.util.Calendar.Builder
-
Packages that use Calendar.Builder 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). -
-
Uses of Calendar.Builder in java.util
Methods in java.util that return Calendar.Builder Modifier and Type Method and Description Calendar.Builder
Calendar.Builder. set(int field, int value)
Sets thefield
parameter to the givenvalue
.Calendar.Builder
Calendar.Builder. setCalendarType(String type)
Sets the calendar type parameter to the giventype
.Calendar.Builder
Calendar.Builder. setDate(int year, int month, int dayOfMonth)
Sets the date field parameters to the values given byyear
,month
, anddayOfMonth
.Calendar.Builder
Calendar.Builder. setFields(int... fieldValuePairs)
Sets field parameters to their values given byfieldValuePairs
that are pairs of a field and its value.Calendar.Builder
Calendar.Builder. setInstant(Date instant)
Sets the instant parameter to theinstant
value given by aDate
.Calendar.Builder
Calendar.Builder. setInstant(long instant)
Sets the instant parameter to the giveninstant
value that is a millisecond offset from the Epoch.Calendar.Builder
Calendar.Builder. setLenient(boolean lenient)
Sets the lenient mode parameter to the value given bylenient
.Calendar.Builder
Calendar.Builder. setLocale(Locale locale)
Sets the locale parameter to the givenlocale
.Calendar.Builder
Calendar.Builder. setTimeOfDay(int hourOfDay, int minute, int second)
Sets the time of day field parameters to the values given byhourOfDay
,minute
, andsecond
.Calendar.Builder
Calendar.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.Builder
Calendar.Builder. setTimeZone(TimeZone zone)
Sets the time zone parameter to the givenzone
.Calendar.Builder
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.Builder
Calendar.Builder. setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek)
Sets the week definition parameters to the values given byfirstDayOfWeek
andminimalDaysInFirstWeek
that are used to determine the first week of a year.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.