Uses of Class
org.lukashian.Day

Packages that use Day
Package
Description
 
  • Uses of Day in org.lukashian

    Methods in org.lukashian that return Day
    Modifier and Type
    Method
    Description
    Year.atDay(int day)
    Returns a new Day that represents the Day of this year that is denoted by the given day number.
    Year.firstDay()
    Returns a new Day that represents the first Day of this year.
    Instant.getDay()
    Returns the Day of this instant.
    Year.lastDay()
    Returns a new Day that represents the last Day of this year.
    Day.minusDays(int daysToSubtract)
    Returns a new Day that represents this day minus the given amount of days.
    Day.minusYears(int yearsToSubtract)
    Returns a new Day that 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 new Day that represents the day succeeding this day.
    static Day
    Day.now()
    Returns the current Day.
    static Day
    Day.of(int epochDay)
    Creates a new Day representing 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 Day
    Day.of(int year, int day)
    Creates a new Day representing the given day in the given year.
    static Day
    Day.of(Year year, int day)
    Creates a new Day representing the given day in the given year.
    Day.plusDays(int daysToAdd)
    Returns a new Day that represents this day plus the given amount of days.
    Day.plusYears(int yearsToAdd)
    Returns a new Day that 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 new Day that represents the day preceding this day.
    Methods in org.lukashian with parameters of type Day
    Modifier and Type
    Method
    Description
    int
    Day.compareTo(Day other)
     
    boolean
    Year.contains(Day day)
    Returns whether the given non-null Day, is part of this year.
    boolean
    Year.containsNot(Day day)
    Returns whether the given non-null Day, is not part of this year.
    int
    Day.differenceWith(Day other)
    Returns the amount of days between this day and the given non-null Day, directionally.
    static String
    Formatter.format(Day day)
    Formats the given Day with Formatter.DayFormat.YEAR_FIRST and '-' as a separator.
    static String
    Formatter.format(Day day, Formatter.DayFormat format)
    Formats the given Day, according to the given Formatter.DayFormat, with '-' as a separator.
    static String
    Formatter.format(Day day, Formatter.DayFormat format, String separator)
    Formats the given Day according to the given Formatter.DayFormat, using the given separator between the day and the year.
    boolean
    Day.isAfter(Day other)
    Returns whether this day is after the given non-null Day.
    boolean
    Day.isBefore(Day other)
    Returns whether this day is before the given non-null Day.
    boolean
    Instant.isIn(Day day)
    Returns whether this instant is in the given non-null Day.
    boolean
    Instant.isNotIn(Day day)
    Returns whether this instant is not in the given non-null Day.
    boolean
    Day.isSameOrAfter(Day other)
    Returns whether this day is the same or after the given non-null Day.
    boolean
    Day.isSameOrBefore(Day other)
    Returns whether this day is the same or before the given non-null Day.
    static Instant
    Instant.of(Day day, int beeps)
    Creates a new Instant that represents the millisecond at the point in time when the given proportion of the given day has passed.
    static Instant
    Instant.of(Day day, org.apache.commons.numbers.fraction.BigFraction proportionOfDay)
    Creates a new Instant that represents the millisecond at the point in time when the given proportion of the given day has passed.