Uses of Class
org.threeten.extra.Years
Packages that use Years
-
Uses of Years in org.threeten.extra
Fields in org.threeten.extra declared as YearsModifier and TypeFieldDescriptionstatic final YearsYears.ONEA constant for one year.static final YearsYears.ZEROA constant for zero years.Methods in org.threeten.extra that return YearsModifier and TypeMethodDescriptionYears.abs()Returns a copy of this duration with a positive length.static YearsObtains aYearsconsisting of the number of years between two dates.Years.dividedBy(int divisor) Returns an instance with the amount divided by the specified divisor.static YearsYears.from(TemporalAmount amount) Obtains an instance ofYearsfrom a temporal amount.Years.minus(int years) Returns a copy of this amount with the specified number of years subtracted.Years.minus(TemporalAmount amountToSubtract) Returns a copy of this amount with the specified amount subtracted.Years.multipliedBy(int scalar) Returns an instance with the amount multiplied by the specified scalar.Years.negated()Returns an instance with the amount negated.static YearsYears.of(int years) Obtains aYearsrepresenting a number of years.static YearsYears.parse(CharSequence text) Obtains aYearsfrom a text string such asPnY.Years.plus(int years) Returns a copy of this amount with the specified number of years added.Years.plus(TemporalAmount amountToAdd) Returns a copy of this amount with the specified amount added.Methods in org.threeten.extra with parameters of type Years