Uses of Class
org.threeten.bp.Year
Packages that use Year
-
Uses of Year in org.threeten.bp
Methods in org.threeten.bp that return YearModifier and TypeMethodDescriptionstatic Year
Year.from(TemporalAccessor temporal)
Obtains an instance ofYear
from a temporal object.Year.minus(long amountToSubtract, TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted.Year.minus(TemporalAmount amount)
Returns a copy of this year with the specified period subtracted.Year.minusYears(long yearsToSubtract)
Returns a copy of this year with the specified number of years subtracted.static Year
Year.now()
Obtains the current year from the system clock in the default time-zone.static Year
Obtains the current year from the specified clock.static Year
Obtains the current year from the system clock in the specified time-zone.static Year
Year.of(int isoYear)
Obtains an instance ofYear
.static Year
Year.parse(CharSequence text)
Obtains an instance ofYear
from a text string such as2007
.static Year
Year.parse(CharSequence text, DateTimeFormatter formatter)
Obtains an instance ofYear
from a text string using a specific formatter.Year.plus(long amountToAdd, TemporalUnit unit)
Returns an object of the same type as this object with the specified period added.Year.plus(TemporalAmount amount)
Returns a copy of this year with the specified period added.Year.plusYears(long yearsToAdd)
Returns a copy of this year with the specified number of years added.Year.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this year.Year.with(TemporalField field, long newValue)
Returns a copy of this year with the specified field set to a new value.Methods in org.threeten.bp with parameters of type Year