Uses of Class
org.lukashian.Year
Packages that use Year
-
Uses of Year in org.lukashian
Methods in org.lukashian that return YearModifier and TypeMethodDescriptionDay.getEndYear()
Returns the year that thisDay
ends in.Day.getYear()
Returns the year of thisDay
, which is the year this day starts in.Instant.getYear()
Returns the year that this instant is in.Year.minusYears
(int yearsToSubtract) Returns a newYear
that represents this year minus the given amount of years.Year.next()
Returns a newYear
that represents the year succeeding this year.static Year
Year.now()
Returns the currentYear
.static Year
Year.of
(int year) Creates a newYear
representing the given year.Year.plusYears
(int yearsToAdd) Returns a newYear
that represents this year plus the given amount of years.Year.previous()
Returns a newYear
that represents the year preceding this year.Methods in org.lukashian with parameters of type YearModifier and TypeMethodDescriptionint
int
Year.differenceWith
(Year other) Returns the difference of the numerical year values of this year and the given non-nullYear
.static String
Formats the given year by simply returning the year as aString
.boolean
Returns whether this year is after the given non-nullYear
.boolean
Returns whether this year is before the given non-nullYear
.boolean
Returns whether this day is in the given non-nullYear
.boolean
Returns whether this instant is in the given non-nullYear
.boolean
Returns whether this day is not in the given non-nullYear
.boolean
Returns whether this instant is not in the given non-nullYear
.boolean
Year.isSameOrAfter
(Year other) Returns whether this year is the same or after the given non-nullYear
.boolean
Year.isSameOrBefore
(Year other) Returns whether this year is the same or before the given non-nullYear
.static Day
Creates a newDay
representing the given day in the given year.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.