| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Field and Description |
|---|---|
static NavigableElement<Weekday> |
PlainDate.DAY_OF_WEEK
Element with the day of week in the value range
MONDAY-SUNDAY. |
| Modifier and Type | Method and Description |
|---|---|
Weekday |
Weekmodel.getEndOfWeekend()
Defines the last day of weekend.
|
Weekday |
Weekmodel.getFirstDayOfWeek()
Defines the first day of the calendar week in this model.
|
Weekday |
Weekmodel.getFirstWorkday()
Gets the first working day as first day after end of weekend.
|
Weekday |
Weekmodel.getStartOfWeekend()
Defines the first day of the weekend.
|
Weekday |
Weekday.next()
Rolls to the next day of week.
|
Weekday |
Weekday.previous()
Rolls to the previous day of week.
|
Weekday |
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 |
Weekday.valueOf(int year,
Month monthOfYear,
int dayOfMonth)
Gets the weekday corresponding to given gregorian date.
|
static Weekday |
Weekday.valueOf(int dayOfWeek,
Weekmodel model)
Gets the enum-constant which corresponds to the given localized
numerical value taking into account given week model.
|
static Weekday |
Weekday.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weekday[] |
Weekday.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Weekday[] |
Weekday.values(Weekmodel model)
Yields an array which is sorted corresponding to the rule of given
week model on which day a week starts.
|
| Modifier and Type | Method and Description |
|---|---|
NavigableElement<Weekday> |
Weekmodel.localDayOfWeek()
Defines an element for the weekday with a localized day number in
the value range
1-7. |
| Modifier and Type | Method and Description |
|---|---|
static PlainDate |
PlainDate.of(int yearOfWeekdate,
int weekOfYear,
Weekday dayOfWeek)
Creates a new week-date conforming to ISO-8601.
|
static Weekmodel |
Weekmodel.of(Weekday firstDayOfWeek,
int minimalDaysInFirstWeek)
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.
|
default ElementOperator<PlainDate> |
OrdinalWeekdayElement.setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday
in month.
|
Copyright © 2014–2015. All rights reserved.