Uses of Class
org.threeten.extra.Months
Packages that use Months
-
Uses of Months in org.threeten.extra
Fields in org.threeten.extra declared as MonthsModifier and TypeFieldDescriptionstatic final MonthsMonths.ONEA constant for one month.static final MonthsMonths.ZEROA constant for zero months.Methods in org.threeten.extra that return MonthsModifier and TypeMethodDescriptionMonths.abs()Returns a copy of this duration with a positive length.static MonthsObtains aMonthsconsisting of the number of months between two dates.Months.dividedBy(int divisor) Returns an instance with the amount divided by the specified divisor.static MonthsMonths.from(TemporalAmount amount) Obtains an instance ofMonthsfrom 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 MonthsMonths.of(int months) Obtains aMonthsrepresenting a number of months.static MonthsMonths.ofYears(int years) Obtains aMonthsrepresenting the number of months equivalent to a number of years.static MonthsMonths.parse(CharSequence text) Obtains aMonthsfrom a text string such asPnM.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