Package | Description |
---|---|
org.threeten.extra |
Modifier and Type | Field and Description |
---|---|
static Weeks |
Weeks.ONE
A constant for one week.
|
static Weeks |
Weeks.ZERO
A constant for zero weeks.
|
Modifier and Type | Method and Description |
---|---|
Weeks |
Weeks.abs()
Returns a copy of this duration with a positive length.
|
static Weeks |
Weeks.between(Temporal startDateInclusive,
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(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(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(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(TemporalAmount amountToAdd)
Returns a copy of this amount with the specified amount added.
|
Modifier and Type | Method and Description |
---|---|
int |
Weeks.compareTo(Weeks otherAmount)
Compares this amount to the specified
Weeks . |
Copyright © 2010–2017 ThreeTen.org. All rights reserved.