Uses of Class
org.threeten.extra.Months

Packages that use Months
Package
Description
Value types and utilities that extend java.time.*.
  • Uses of Months in org.threeten.extra

    Fields in org.threeten.extra declared as Months
    Modifier and Type
    Field
    Description
    static final Months
    Months.ONE
    A constant for one month.
    static final Months
    Months.ZERO
    A constant for zero months.
    Methods in org.threeten.extra that return Months
    Modifier and Type
    Method
    Description
    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.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.minus(int months)
    Returns a copy of this amount with the specified number of months subtracted.
    Months.minus(TemporalAmount amountToSubtract)
    Returns a copy of this amount with the specified amount subtracted.
    Months.multipliedBy(int scalar)
    Returns an instance with the amount multiplied by the specified scalar.
    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.plus(int months)
    Returns a copy of this amount with the specified number of months added.
    Months.plus(TemporalAmount amountToAdd)
    Returns a copy of this amount with the specified amount added.
    Methods in org.threeten.extra with parameters of type Months
    Modifier and Type
    Method
    Description
    int
    Months.compareTo(Months otherAmount)
    Compares this amount to the specified Months.