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 thisDayends 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 newYearthat represents this year minus the given amount of years.Year.next()Returns a newYearthat represents the year succeeding this year.static YearYear.now()Returns the currentYear.static YearYear.of(int year) Creates a newYearrepresenting the given year.Year.plusYears(int yearsToAdd) Returns a newYearthat represents this year plus the given amount of years.Year.previous()Returns a newYearthat represents the year preceding this year.Methods in org.lukashian with parameters of type YearModifier and TypeMethodDescriptionintintYear.differenceWith(Year other) Returns the difference of the numerical year values of this year and the given non-nullYear.static StringFormats the given year by simply returning the year as aString.booleanReturns whether this year is after the given non-nullYear.booleanReturns whether this year is before the given non-nullYear.booleanReturns whether this day is in the given non-nullYear.booleanReturns whether this instant is in the given non-nullYear.booleanReturns whether this day is not in the given non-nullYear.booleanReturns whether this instant is not in the given non-nullYear.booleanYear.isSameOrAfter(Year other) Returns whether this year is the same or after the given non-nullYear.booleanYear.isSameOrBefore(Year other) Returns whether this year is the same or before the given non-nullYear.static DayCreates a newDayrepresenting the given day in the given year.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.