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