Uses of Enum
org.threeten.bp.DayOfWeek
Packages that use DayOfWeek
Package
Description
The main API for dates, times, instants, and durations.
Access to date and time using fields and units.
Support for time-zones and their rules.
-
Uses of DayOfWeek in org.threeten.bp
Fields in org.threeten.bp with type parameters of type DayOfWeekModifier and TypeFieldDescriptionstatic TemporalQuery<DayOfWeek>
DayOfWeek.FROM
Simulate JDK 8 method reference DayOfWeek::from.Methods in org.threeten.bp that return DayOfWeekModifier and TypeMethodDescriptionstatic DayOfWeek
DayOfWeek.from(TemporalAccessor temporal)
Obtains an instance ofDayOfWeek
from a temporal object.LocalDate.getDayOfWeek()
Gets the day-of-week field, which is an enumDayOfWeek
.LocalDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enumDayOfWeek
.OffsetDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enumDayOfWeek
.ZonedDateTime.getDayOfWeek()
Gets the day-of-week field, which is an enumDayOfWeek
.DayOfWeek.minus(long days)
Returns the day-of-week that is the specified number of days before this one.static DayOfWeek
DayOfWeek.of(int dayOfWeek)
Obtains an instance ofDayOfWeek
from anint
value.DayOfWeek.plus(long days)
Returns the day-of-week that is the specified number of days after this one.static DayOfWeek
Returns the enum constant of this type with the specified name.static DayOfWeek[]
DayOfWeek.values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of DayOfWeek in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal that return DayOfWeekMethods in org.threeten.bp.temporal with parameters of type DayOfWeekModifier and TypeMethodDescriptionstatic TemporalAdjuster
TemporalAdjusters.dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek)
Returns the day-of-week in month adjuster, which returns a new date in the same month with the ordinal day-of-week.static TemporalAdjuster
TemporalAdjusters.firstInMonth(DayOfWeek dayOfWeek)
Returns the first in month adjuster, which returns a new date in the same month with the first matching day-of-week.static TemporalAdjuster
TemporalAdjusters.lastInMonth(DayOfWeek dayOfWeek)
Returns the last in month adjuster, which returns a new date in the same month with the last matching day-of-week.static TemporalAdjuster
Returns the next day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted.static TemporalAdjuster
TemporalAdjusters.nextOrSame(DayOfWeek dayOfWeek)
Returns the next-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted unless it is already on that day in which case the same object is returned.static WeekFields
Obtains an instance ofWeekFields
from the first day-of-week and minimal days.static TemporalAdjuster
Returns the previous day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted.static TemporalAdjuster
TemporalAdjusters.previousOrSame(DayOfWeek dayOfWeek)
Returns the previous-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted unless it is already on that day in which case the same object is returned. -
Uses of DayOfWeek in org.threeten.bp.zone
Methods in org.threeten.bp.zone that return DayOfWeekModifier and TypeMethodDescriptionZoneOffsetTransitionRule.getDayOfWeek()
Gets the day-of-week of the transition.Methods in org.threeten.bp.zone with parameters of type DayOfWeekModifier and TypeMethodDescriptionstatic ZoneOffsetTransitionRule
ZoneOffsetTransitionRule.of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
Obtains an instance defining the yearly rule to create transitions between two offsets.