Uses of Enum Class
net.time4j.Quarter
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Interval support.
-
Uses of Quarter in net.time4j
Modifier and TypeFieldDescriptionstatic NavigableElement<Quarter>
PlainDate.QUARTER_OF_YEAR
Element with the quarter of year in the value rangeQ1-Q4
.Modifier and TypeMethodDescriptionMonth.getQuarterOfYear()
Calculates the corresponding quarter of year.Quarter.next()
Rolls to the next quarter.static Quarter
Quarter.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as quarter of year.Quarter.previous()
Rolls to the previous quarter.Quarter.roll(int quarters)
Rolls by given amount of quarters.static Quarter
Quarter.valueOf(int quarter)
Gets the enum-constant which corresponds to the given numerical value.static Quarter
Returns the enum constant of this class with the specified name.static Quarter[]
Quarter.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic Month
Month.atEndOfQuarterYear(Quarter quarterOfYear)
Gets the last month of given quarter of year.static Month
Month.atStartOfQuarterYear(Quarter quarterOfYear)
Gets the first month of given quarter of year. -
Uses of Quarter in net.time4j.range
Modifier and TypeFieldDescriptionstatic ChronoElement<Quarter>
CalendarQuarter.QUARTER_OF_YEAR
Element with the quarter of year in the value rangeQ1-Q4
.Modifier and TypeMethodDescriptionCombines this year with given quarter year to a calendar quarter.static CalendarQuarter
Creates a new instance based on given gregorian calendar year and quarter year.