| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.calendar |
Support for various regional calendars.
|
| net.time4j.calendar.hindu |
Support for the traditional Hindu calendar family.
|
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ElementOperator<T>
Defines any manipulation of date or wall time objects following the
strategy design pattern.
|
class |
Month
Enumeration of months in ISO-8601-calendar.
|
class |
Quarter
Represents a quarter (in most cases of a year).
|
class |
Weekday
Enumeration of weekdays.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<PlainDate> |
AnnualDate.asNextExactEvent()
Determines the next possible exact annual date.
|
ChronoOperator<PlainDate> |
AnnualDate.asNextRoundedEvent()
Determines the next possible annual date and rounds up to next day if necessary.
|
ChronoOperator<Moment> |
ElementOperator.at(ZonalOffset offset)
Creates an operator which can adjust a
Moment at the
given timezone offset. |
default ChronoOperator<T> |
AdjustableElement.atCeiling(V value)
Combines
newValue(V) and then atCeiling(). |
default ChronoOperator<T> |
AdjustableElement.atFloor(V value)
Combines
newValue(V) and then atFloor(). |
ChronoOperator<Moment> |
ElementOperator.atUTC()
Equivalent to
at(ZonalOffset.UTC). |
ChronoOperator<Moment> |
ElementOperator.in(Timezone tz)
Creates an operator which can adjust a
Moment in the
given timezone. |
ChronoOperator<Moment> |
ElementOperator.inStdTimezone()
Creates an operator which can adjust a
Moment in the
system timezone. |
ChronoOperator<Moment> |
ElementOperator.inTimezone(TZID tzid)
Creates an operator which can adjust a
Moment in the
given timezone. |
static ChronoOperator<Moment> |
Moment.nextLeapSecond()
Tries to determine the next coming leap second.
|
ChronoOperator<T> |
ProportionalElement.roundedDown(int stepwidth)
Rounds this chronological element down and makes its numerical
value an integral multiple of given step width if possible.
|
ChronoOperator<T> |
ProportionalElement.roundedHalf(int stepwidth)
Rounds this chronological element up or down and makes its
numerical value an integral multiple of given step width if
possible.
|
ChronoOperator<T> |
ProportionalElement.roundedUp(int stepwidth)
Rounds this chronological element up and makes its numerical
value an integral multiple of given step width if possible.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<T> |
StdCalendarElement.atCeiling()
Rounds up an entity by setting all child elements to maximum.
|
ChronoOperator<T> |
StdCalendarElement.atFloor()
Rounds down an entity by setting all child elements to minimum.
|
ChronoOperator<T> |
StdCalendarElement.decremented()
Adjusts any local entity such that this element gets the previous value.
|
ChronoOperator<T> |
StdCalendarElement.incremented()
Adjusts any local entity such that this element gets the next value.
|
ChronoOperator<T> |
StdCalendarElement.maximized()
Sets any local entity to the maximum of this element.
|
ChronoOperator<T> |
StdCalendarElement.minimized()
Sets any local entity to the minimum of this element.
|
ChronoOperator<T> |
OrdinalWeekdayElement.setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday in month.
|
ChronoOperator<T> |
OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
|
ChronoOperator<T> |
OrdinalWeekdayElement.setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
|
<D extends EastAsianCalendar<?,D>> |
SolarTerm.sinceLichun()
Obtains an operator which searches for this solar term on or after Lichun event in the gregorian year
corresponding to the East Asian calendar date in question.
|
<D extends EastAsianCalendar<?,D>> |
SolarTerm.sinceNewYear()
Obtains an operator which searches for this solar term on or after New Year
of the East Asian calendar date in question.
|
| Modifier and Type | Method and Description |
|---|---|
default ChronoOperator<HinduCalendar> |
AdjustableTextElement.maximized()
Sets the Hindu calendar date to the maximum of this element.
|
default ChronoOperator<HinduCalendar> |
AdjustableTextElement.minimized()
Sets the Hindu calendar date to the minimum of this element.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StdOperator<T extends ChronoEntity<T>>
Factory for producing standard chronological operators which are applicable
on most chronological entities.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T>> |
StdOperator.atCeiling(ChronoElement<?> element)
Yields an operator which rounds any entity up so that the child
elements will be set to the maximum.
|
static <T extends ChronoEntity<T>> |
StdOperator.atFloor(ChronoElement<?> element)
Yields an operator which rounds any entity down so that the child
elements will be set to the minimum.
|
static <T extends ChronoEntity<T>> |
StdOperator.decremented(ChronoElement<?> element)
Yields a new operator which can set any entity such that its
actual element value gets the decremented value.
|
static <T extends ChronoEntity<T>> |
StdOperator.incremented(ChronoElement<?> element)
Yields a new operator which can set any entity such that its
actual element value gets the incremented value.
|
static <T extends ChronoEntity<T>> |
StdOperator.maximized(ChronoElement<?> element)
Yields a new operator which can set any entity to its maximum
element value.
|
static <T extends ChronoEntity<T>> |
StdOperator.minimized(ChronoElement<?> element)
Yields a new operator which can set any entity to its minimum
element value.
|
static <T extends ChronoEntity<T>,V> |
StdOperator.newValue(V value,
ChronoElement<V> element)
Yields an operator which sets any entity such that its actual
element value will be set in normal mode to given value.
|
static <T extends ChronoEntity<T>,V> |
StdOperator.setLenient(V value,
ChronoElement<V> element)
Yields an operator which sets any entity such that its actual
element value will be set in lenient mode to given value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ChronoEntity.with(ChronoOperator<T> operator)
Creates a copy of this instance which is adjusted by given
ChronoOperator using a strategy pattern approach. |
| Modifier and Type | Method and Description |
|---|---|
default ChronoOperator<PlainDate> |
HolidayModel.nextBusinessDay()
Determines the next business day.
|
default ChronoOperator<PlainDate> |
HolidayModel.nextOrSameBusinessDay()
Determines the same or next business day.
|
default ChronoOperator<PlainDate> |
HolidayModel.previousBusinessDay()
Determines the previous business day.
|
default ChronoOperator<PlainDate> |
HolidayModel.previousOrSameBusinessDay()
Determines the same or previous business day.
|
Copyright © 2014–2021. All rights reserved.