Package | Description |
---|---|
org.threeten.extra |
Modifier and Type | Method | Description |
---|---|---|
static YearWeek |
YearWeek.from(java.time.temporal.TemporalAccessor temporal) |
Obtains an instance of
YearWeek from a temporal object. |
YearWeek |
YearWeek.minusWeeks(long weeksToSubtract) |
Returns a copy of this year-week with the specified number of weeks subtracted.
|
YearWeek |
YearWeek.minusYears(long yearsToSubtract) |
Returns a copy of this year-week with the specified number of years subtracted.
|
static YearWeek |
YearWeek.now() |
Obtains the current year-week from the system clock in the default time-zone.
|
static YearWeek |
YearWeek.now(java.time.Clock clock) |
Obtains the current year-week from the specified clock.
|
static YearWeek |
YearWeek.now(java.time.ZoneId zone) |
Obtains the current year-week from the system clock in the specified time-zone.
|
static YearWeek |
YearWeek.of(int weekBasedYear,
int week) |
Obtains an instance of
YearWeek from a week-based-year and week. |
static YearWeek |
YearWeek.parse(java.lang.CharSequence text) |
Obtains an instance of
YearWeek from a text string such as 2007-W13 . |
static YearWeek |
YearWeek.parse(java.lang.CharSequence text,
java.time.format.DateTimeFormatter formatter) |
Obtains an instance of
YearWeek from a text string using a specific formatter. |
YearWeek |
YearWeek.plusWeeks(long weeksToAdd) |
Returns a copy of this year-week with the specified number of weeks added.
|
YearWeek |
YearWeek.plusYears(long yearsToAdd) |
Returns a copy of this year-week with the specified number of years added.
|
YearWeek |
YearWeek.withWeek(int week) |
Returns a copy of this
YearWeek with the week altered. |
YearWeek |
YearWeek.withYear(int weekBasedYear) |
Returns a copy of this
YearWeek with the week-based-year altered. |
Modifier and Type | Method | Description |
---|---|---|
int |
YearWeek.compareTo(YearWeek other) |
Compares this year-week to another
|
boolean |
YearWeek.isAfter(YearWeek other) |
Is this year-week after the specified year-week.
|
boolean |
YearWeek.isBefore(YearWeek other) |
Is this year-week before the specified year-week.
|
Copyright © 2010–2018 ThreeTen.org. All rights reserved.