| 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 Weekmodel |
Weekmodel.ISO
Standard week rules as defined by ISO-8601.
|
| Modifier and Type | Method and Description |
|---|---|
static Weekmodel |
Weekmodel.of(Locale locale)
Gets a suitable weekmodel for the given country.
|
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.
|
static Weekmodel |
Weekmodel.ofSystem()
Gets a suitable weekmodel for the default locale of system.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Weekday.getValue(Weekmodel model)
Gets the numerical value corresponding to the rule of given
week model on which day a week starts.
|
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.values(Weekmodel model)
Yields an array which is sorted corresponding to the rule of given
week model on which day a week starts.
|
Copyright © 2014–2015. All rights reserved.