| Package | Description |
|---|---|
| org.threeten.extra |
Value types and utilities that extend
java.time.*. |
| Modifier and Type | Method | Description |
|---|---|---|
static YearQuarter |
YearQuarter.from(TemporalAccessor temporal) |
Obtains an instance of
YearQuarter from a temporal object. |
YearQuarter |
YearQuarter.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this year-quarter with the specified amount subtracted.
|
YearQuarter |
YearQuarter.minus(TemporalAmount amountToSubtract) |
Returns a copy of this year-quarter with the specified amount subtracted.
|
YearQuarter |
YearQuarter.minusQuarters(long quartersToSubtract) |
Returns a copy of this year-quarter with the specified period in quarters subtracted.
|
YearQuarter |
YearQuarter.minusYears(long yearsToSubtract) |
Returns a copy of this year-quarter with the specified period in years subtracted.
|
static YearQuarter |
YearQuarter.now() |
Obtains the current year-quarter from the system clock in the default time-zone.
|
static YearQuarter |
YearQuarter.now(Clock clock) |
Obtains the current year-quarter from the specified clock.
|
static YearQuarter |
YearQuarter.now(ZoneId zone) |
Obtains the current year-quarter from the system clock in the specified time-zone.
|
static YearQuarter |
YearQuarter.of(int year,
int quarter) |
Obtains an instance of
YearQuarter from a year and quarter. |
static YearQuarter |
YearQuarter.of(int year,
Quarter quarter) |
Obtains an instance of
YearQuarter from a year and quarter. |
static YearQuarter |
YearQuarter.parse(CharSequence text) |
Obtains an instance of
YearQuarter from a text string such as 2007-Q2. |
static YearQuarter |
YearQuarter.parse(CharSequence text,
DateTimeFormatter formatter) |
Obtains an instance of
YearQuarter from a text string using a specific formatter. |
YearQuarter |
YearQuarter.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this year-quarter with the specified amount added.
|
YearQuarter |
YearQuarter.plus(TemporalAmount amountToAdd) |
Returns a copy of this year-quarter with the specified amount added.
|
YearQuarter |
YearQuarter.plusQuarters(long quartersToAdd) |
Returns a copy of this year-quarter with the specified period in quarters added.
|
YearQuarter |
YearQuarter.plusYears(long yearsToAdd) |
Returns a copy of this year-quarter with the specified period in years added.
|
YearQuarter |
YearQuarter.with(TemporalAdjuster adjuster) |
Returns an adjusted copy of this year-quarter.
|
YearQuarter |
YearQuarter.with(TemporalField field,
long newValue) |
Returns a copy of this year-quarter with the specified field set to a new value.
|
YearQuarter |
YearQuarter.withQuarter(int quarter) |
Returns a copy of this
YearQuarter with the quarter-of-year altered. |
YearQuarter |
YearQuarter.withYear(int year) |
Returns a copy of this
YearQuarter with the year altered. |
| Modifier and Type | Method | Description |
|---|---|---|
Stream<YearQuarter> |
YearQuarter.quartersUntil(YearQuarter endExclusive) |
Returns a sequential ordered stream of year-quarter.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
YearQuarter.compareTo(YearQuarter other) |
Compares this year-quarter to another
|
boolean |
YearQuarter.isAfter(YearQuarter other) |
Is this year-quarter after the specified year-quarter.
|
boolean |
YearQuarter.isBefore(YearQuarter other) |
Is this year-quarter before the specified year-quarter.
|
Stream<YearQuarter> |
YearQuarter.quartersUntil(YearQuarter endExclusive) |
Returns a sequential ordered stream of year-quarter.
|
Copyright © 2010–2019 ThreeTen.org. All rights reserved.