Uses of Class
org.lukashian.Day
Packages that use Day
-
Uses of Day in org.lukashian
Methods in org.lukashian that return DayModifier and TypeMethodDescriptionYear.atDay(int day) Year.firstDay()Instant.getDay()Returns theDayof this instant.Year.lastDay()Day.minusDays(int daysToSubtract) Returns a newDaythat represents this day minus the given amount of days.Day.minusYears(int yearsToSubtract) Returns a newDaythat represents this day's number on this day's year minus the given amount of years, for example, if this day represents day number 10 of its year, then calling this method will return an day that represents day number 10 of the resulting year.Day.next()Returns a newDaythat represents the day succeeding this day.static DayDay.now()Returns the currentDay.static DayDay.of(int epochDay) Creates a newDayrepresenting the given epoch day, i.e. the number of the day since the start of the calendar, irrespective of the year that the day is in, e.g.static DayDay.of(int year, int day) Creates a newDayrepresenting the given day in the given year.static DayCreates a newDayrepresenting the given day in the given year.Day.plusDays(int daysToAdd) Returns a newDaythat represents this day plus the given amount of days.Day.plusYears(int yearsToAdd) Returns a newDaythat represents this day's number on this day's year plus the given amount of years, for example, if this day represents day number 10 of its year, then calling this method will return an day that represents day number 10 of the resulting year.Day.previous()Returns a newDaythat represents the day preceding this day.Methods in org.lukashian with parameters of type DayModifier and TypeMethodDescriptionintbooleanReturns whether the given non-nullDay, is part of this year.booleanYear.containsNot(Day day) Returns whether the given non-nullDay, is not part of this year.intDay.differenceWith(Day other) Returns the amount of days between this day and the given non-nullDay, directionally.static StringFormats the givenDaywithFormatter.DayFormat.YEAR_FIRSTand '-' as a separator.static StringFormatter.format(Day day, Formatter.DayFormat format) Formats the givenDay, according to the givenFormatter.DayFormat, with '-' as a separator.static StringFormatter.format(Day day, Formatter.DayFormat format, String separator) Formats the givenDayaccording to the givenFormatter.DayFormat, using the given separator between the day and the year.booleanReturns whether this day is after the given non-nullDay.booleanReturns whether this day is before the given non-nullDay.booleanReturns whether this instant is in the given non-nullDay.booleanReturns whether this instant is not in the given non-nullDay.booleanDay.isSameOrAfter(Day other) Returns whether this day is the same or after the given non-nullDay.booleanDay.isSameOrBefore(Day other) Returns whether this day is the same or before the given non-nullDay.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.