Package | Description |
---|---|
org.threeten.extra |
Modifier and Type | Method | Description |
---|---|---|
static YearQuarter |
YearQuarter.from(java.time.temporal.TemporalAccessor temporal) |
Obtains an instance of
YearQuarter from a temporal object. |
YearQuarter |
YearQuarter.minus(long amountToSubtract,
java.time.temporal.TemporalUnit unit) |
Returns a copy of this year-quarter with the specified amount subtracted.
|
YearQuarter |
YearQuarter.minus(java.time.temporal.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(java.time.Clock clock) |
Obtains the current year-quarter from the specified clock.
|
static YearQuarter |
YearQuarter.now(java.time.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(java.lang.CharSequence text) |
Obtains an instance of
YearQuarter from a text string such as 2007-Q2 . |
static YearQuarter |
YearQuarter.parse(java.lang.CharSequence text,
java.time.format.DateTimeFormatter formatter) |
Obtains an instance of
YearQuarter from a text string using a specific formatter. |
YearQuarter |
YearQuarter.plus(long amountToAdd,
java.time.temporal.TemporalUnit unit) |
Returns a copy of this year-quarter with the specified amount added.
|
YearQuarter |
YearQuarter.plus(java.time.temporal.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(java.time.temporal.TemporalAdjuster adjuster) |
Returns an adjusted copy of this year-quarter.
|
YearQuarter |
YearQuarter.with(java.time.temporal.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 |
---|---|---|
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.
|
Copyright © 2010–2018 ThreeTen.org. All rights reserved.