Package | Description |
---|---|
org.threeten.extra |
Modifier and Type | Field | Description |
---|---|---|
static Weeks |
Weeks.ONE |
A constant for one week.
|
static Weeks |
Weeks.ZERO |
A constant for zero weeks.
|
Modifier and Type | Method | Description |
---|---|---|
Weeks |
Weeks.abs() |
Returns a copy of this duration with a positive length.
|
static Weeks |
Weeks.between(java.time.temporal.Temporal startDateInclusive,
java.time.temporal.Temporal endDateExclusive) |
Obtains a
Weeks consisting of the number of weeks between two dates. |
Weeks |
Weeks.dividedBy(int divisor) |
Returns an instance with the amount divided by the specified divisor.
|
static Weeks |
Weeks.from(java.time.temporal.TemporalAmount amount) |
Obtains an instance of
Weeks from a temporal amount. |
Weeks |
Weeks.minus(int weeks) |
Returns a copy of this amount with the specified number of weeks subtracted.
|
Weeks |
Weeks.minus(java.time.temporal.TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount subtracted.
|
Weeks |
Weeks.multipliedBy(int scalar) |
Returns an instance with the amount multiplied by the specified scalar.
|
Weeks |
Weeks.negated() |
Returns an instance with the amount negated.
|
static Weeks |
Weeks.of(int weeks) |
Obtains a
Weeks representing a number of weeks. |
static Weeks |
Weeks.parse(java.lang.CharSequence text) |
Obtains a
Weeks from a text string such as PnW . |
Weeks |
Weeks.plus(int weeks) |
Returns a copy of this amount with the specified number of weeks added.
|
Weeks |
Weeks.plus(java.time.temporal.TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount added.
|
Modifier and Type | Method | Description |
---|---|---|
int |
Weeks.compareTo(Weeks otherAmount) |
Compares this amount to the specified
Weeks . |
Copyright © 2010–2018 ThreeTen.org. All rights reserved.