Uses of Enum Class
net.time4j.Weekday
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Support for the Badi calendar.
Support for the French revolutionary calendar.
Support for the traditional Hindu calendar family.
Defines common interfaces for any format support of Time4J.
Interval support.
Permits the construction of historized or rule-based timezones.
-
Uses of Weekday in net.time4j
Modifier and TypeFieldDescriptionstatic NavigableElement<Weekday>
PlainDate.DAY_OF_WEEK
Element with the day of week in the value rangeMONDAY-SUNDAY
.Modifier and TypeMethodDescriptionstatic Weekday
Conversion from thejava.time
-equivalent.PlainDate.getDayOfWeek()
Determines the day of week.Weekmodel.getEndOfWeekend()
Defines the last day of weekend.Weekmodel.getFirstDayOfWeek()
Defines the first day of the calendar week in this model.Weekmodel.getFirstWorkday()
Gets the first working day as first day after end of weekend.Weekmodel.getStartOfWeekend()
Defines the first day of the weekend.Weekday.next()
Rolls to the next day of week.static Weekday
Weekday.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as day-of-week.Weekday.previous()
Rolls to the previous day of week.Weekday.roll(int days)
Rolls this day of week by given amount of days.static Weekday
Weekday.valueOf(int dayOfWeek)
Gets the enum-constant which corresponds to the given numerical value.static Weekday
Gets the weekday corresponding to given gregorian date.static Weekday
Gets the enum-constant which corresponds to the given localized numerical value taking into account given week model.static Weekday
Returns the enum constant of this class with the specified name.static Weekday[]
Weekday.values()
Returns an array containing the constants of this enum class, in the order they are declared.static Weekday[]
Yields an array which is sorted corresponding to the rule of given week model on which day a week starts.Modifier and TypeMethodDescriptionWeekmodel.localDayOfWeek()
Defines an element for the weekday with a localized day number in the value range1-7
.Weekmodel.stream()
Obtains a stream where the first element is the first day of week.Modifier and TypeMethodDescriptionstatic PlainDate
Creates a new week-date conforming to ISO-8601.static Weekmodel
Creates a new week model with the given rules and the weekend-definition Saturday/Sunday.static Weekmodel
Weekmodel.of(Weekday firstDayOfWeek, int minimalDaysInFirstWeek, Weekday startOfWeekend, Weekday endOfWeekend)
Creates a new week model with the given rules.Obtains the localized word for given last day-of-week if available.Obtains the localized word for given next day-of-week if available.default ElementOperator<PlainDate>
Defines an operator which moves a date to the given ordinal weekday in month.OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.OrdinalWeekdayElement.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday in month.Defines an operator which moves a date to the last given weekday in month.OrdinalWeekdayElement.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday in month.OrdinalWeekdayElement.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday in month. -
Uses of Weekday in net.time4j.calendar
Modifier and TypeFieldDescriptionstatic StdCalendarElement<Weekday,ChineseCalendar>
ChineseCalendar.DAY_OF_WEEK
Represents the Chinese day of week.static StdCalendarElement<Weekday,CopticCalendar>
CopticCalendar.DAY_OF_WEEK
Represents the Coptic day of week.static StdCalendarElement<Weekday,EthiopianCalendar>
EthiopianCalendar.DAY_OF_WEEK
Represents the Ethiopian day of week.static StdCalendarElement<Weekday,HebrewCalendar>
HebrewCalendar.DAY_OF_WEEK
Represents the Hebrew day of week.static StdCalendarElement<Weekday,HijriCalendar>
HijriCalendar.DAY_OF_WEEK
Represents the islamic day of week.static StdCalendarElement<Weekday,HistoricCalendar>
HistoricCalendar.DAY_OF_WEEK
Represents the historic day of week.static StdCalendarElement<Weekday,IndianCalendar>
IndianCalendar.DAY_OF_WEEK
Represents the Indian day of week.static StdCalendarElement<Weekday,JapaneseCalendar>
JapaneseCalendar.DAY_OF_WEEK
Represents the Japanese day of week.static StdCalendarElement<Weekday,JucheCalendar>
JucheCalendar.DAY_OF_WEEK
Represents the day of week.static ChronoElement<Weekday>
JulianCalendar.DAY_OF_WEEK
Represents the Julian day of week.static StdCalendarElement<Weekday,KoreanCalendar>
KoreanCalendar.DAY_OF_WEEK
Represents the Korean day of week.static StdCalendarElement<Weekday,MinguoCalendar>
MinguoCalendar.DAY_OF_WEEK
Represents the day of week.static StdCalendarElement<Weekday,PersianCalendar>
PersianCalendar.DAY_OF_WEEK
Represents the Persian day of week.static StdCalendarElement<Weekday,ThaiSolarCalendar>
ThaiSolarCalendar.DAY_OF_WEEK
Represents the day of week.static StdCalendarElement<Weekday,VietnameseCalendar>
VietnameseCalendar.DAY_OF_WEEK
Represents the Vietnamese day of week.static StdCalendarElement<Weekday,HebrewCalendar>
HebrewCalendar.LOCAL_DAY_OF_WEEK
Equivalent toCommonElements.localDayOfWeek(HebrewCalendar.axis(), HebrewCalendar.getDefaultWeekmodel())
.static StdCalendarElement<Weekday,HijriCalendar>
HijriCalendar.LOCAL_DAY_OF_WEEK
Equivalent toCommonElements.localDayOfWeek(HijriCalendar.family(), HijriCalendar.getDefaultWeekmodel())
.static StdCalendarElement<Weekday,PersianCalendar>
PersianCalendar.LOCAL_DAY_OF_WEEK
Equivalent toCommonElements.localDayOfWeek(PersianCalendar.axis(), PersianCalendar.getDefaultWeekmodel())
.Modifier and TypeMethodDescriptionCopticCalendar.getDayOfWeek()
Determines the day of week.EastAsianCalendar.getDayOfWeek()
Determines the day of week.EthiopianCalendar.getDayOfWeek()
Determines the day of week.HebrewCalendar.getDayOfWeek()
Determines the day of week.HijriCalendar.getDayOfWeek()
Determines the day of week.HistoricCalendar.getDayOfWeek()
Determines the day of week.IndianCalendar.getDayOfWeek()
Determines the day of week.JapaneseCalendar.getDayOfWeek()
Determines the day of week.JucheCalendar.getDayOfWeek()
Determines the day of week.JulianCalendar.getDayOfWeek()
Determines the day of week.MinguoCalendar.getDayOfWeek()
Determines the day of week.PersianCalendar.getDayOfWeek()
Determines the day of week.ThaiSolarCalendar.getDayOfWeek()
Determines the day of week.Modifier and TypeMethodDescriptionstatic <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Weekday,T>CommonElements.localDayOfWeek(Chronology<T> chronology, Weekmodel model)
Defines an element for the weekday with a localized day number in the value range1-7
.Modifier and TypeMethodDescriptionDefines an operator which moves a date to the given ordinal weekday in month.OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.Defines an operator which moves a date to the last given weekday in month. -
Uses of Weekday in net.time4j.calendar.bahai
Modifier and TypeFieldDescriptionstatic StdCalendarElement<Weekday,BadiCalendar>
BadiCalendar.DAY_OF_WEEK
Represents the day of week.Modifier and TypeMethodDescriptionBadiCalendar.getDayOfWeek()
Determines the day of standard-week (with seven days). -
Uses of Weekday in net.time4j.calendar.frenchrev
Modifier and TypeFieldDescriptionFrenchRepublicanCalendar.DAY_OF_WEEK
Represents the day of week where the week is seven days long.Modifier and TypeMethodDescriptionFrenchRepublicanCalendar.getDayOfWeek()
Determines the day of standard-week (with seven days). -
Uses of Weekday in net.time4j.calendar.hindu
Modifier and TypeFieldDescriptionstatic StdCalendarElement<Weekday,HinduCalendar>
HinduCalendar.DAY_OF_WEEK
Represents the Hindu day of week. -
Uses of Weekday in net.time4j.format
Modifier and TypeMethodDescriptiondefault String
RelativeTimeProvider.labelForLast(Weekday weekday, Locale lang)
Yields the localized word for "last {weekday}".default String
RelativeTimeProvider.labelForNext(Weekday weekday, Locale lang)
Yields the localized word for "next {weekday}". -
Uses of Weekday in net.time4j.range
Modifier and TypeFieldDescriptionstatic ChronoElement<Weekday>
SpanOfWeekdays.END
Denotes the end of this span of weekdays (inclusive).static ChronoElement<Weekday>
SpanOfWeekdays.START
Denotes the start of this span of weekdays.Modifier and TypeMethodDescriptionSpanOfWeekdays.getEnd()
Obtains the end of this span of weekdays.SpanOfWeekdays.getStart()
Obtains the start of this span of weekdays.Modifier and TypeMethodDescriptionDayPartitionBuilder.addWeekdayRule(Weekday dayOfWeek, ClockInterval partition)
Adds a rule to partition a date dependending on its day of week.DayPartitionBuilder.addWeekdayRule(Weekday from, Weekday to, ClockInterval partition)
Adds a rule to partition a date dependending on when its day of week falls into given range.Combines this calendar week with given day of week to a calendar date.static SpanOfWeekdays
Creates a new span of weekdays.static DateInterval
DateInterval.ofCurrentWeek(TimeSource clock, TZID tzid, Weekday firstDay)
Obtains the current calendar week based on given clock, time zone and first day of week.static SpanOfWeekdays
Creates a span of weekdays of only one day. -
Uses of Weekday in net.time4j.tz.model
Modifier and TypeMethodDescriptionstatic GregorianTimezoneRule
GregorianTimezoneRule.ofLastWeekday(Month month, Weekday dayOfWeek, int timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for the last day of week in given month.static GregorianTimezoneRule
GregorianTimezoneRule.ofLastWeekday(Month month, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for the last day of week in given month.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayAfterDate(Month month, int dayOfMonth, Weekday dayOfWeek, int timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week after the given reference date.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayAfterDate(Month month, int dayOfMonth, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week after the given reference date.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month, int dayOfMonth, Weekday dayOfWeek, int timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week before the given reference date.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month, int dayOfMonth, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week before the given reference date.