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