Uses of Class
org.lukashian.Instant

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

    Methods in org.lukashian that return Instant
    Modifier and Type
    Method
    Description
    Instant.atNextDay()
    Returns a new Instant that represents the passed proportion of this instant's day on the next day, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the next day.
    Instant.atPreviousDay()
    Returns a new Instant that represents the passed proportion of this instant's day on the previous day, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the previous day.
    Day.atTime(int beeps)
    Returns a new Instant that represents the instant that occurs after the given proportion of this day has passed.
    Day.atTime(org.apache.commons.numbers.fraction.BigFraction proportionOfDay)
    Returns a new Instant that represents the instant that occurs after the given proportion of this day has passed.
    Returns a new Instant that represents the first Instant of this day.
    Returns a new Instant that represents the first Instant of this year.
    Returns a new Instant that represents the last Instant of this day.
    Returns a new Instant that represents the last Instant of this year.
    Instant.minusBeeps(int beepsToSubtract)
    Returns a new Instant that represents this instant minus the given amount of beeps.
    Instant.minusDays(int daysToSubtract)
    Returns a new Instant that represents the passed proportion of this instant's day on this instant's day minus the given amount of days, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.
    Instant.minusMilliseconds(long millisecondsToSubtract)
    Returns a new Instant that represents this instant minus the given amount of milliseconds.
    Instant.minusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToSubtract)
    Returns a new Instant that represents this instant minus the given proportion of a Day.
    Instant.minusSeconds(long secondsToSubtract)
    Returns a new Instant that represents this instant minus the given amount of seconds.
    Instant.minusYears(int yearsToSubtract)
    Returns a new Instant that represents the passed proportion of this instant's day on this instant's day minus the given amount of years, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.
    static Instant
    Instant.now()
    Returns the current Instant.
    static Instant
    Instant.of(int year, int 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(int year, int 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.
    static Instant
    Instant.of(long epochMilliseconds)
    Creates a new Instant representing the given number of milliseconds since the start of the Lukashian Calendar.
    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.
    static Instant
    Instant.of(Year year, int 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(Year year, int 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.
    static Instant
    Instant.ofJavaInstant(Instant javaInstant)
    Creates a new Instant representing the same point in time as the given Java Instant.
    static Instant
    Instant.ofUnixEpochMilliseconds(long unixEpochMilliseconds)
    Creates a new Instant representing the amount of milliseconds since the UNIX Epoch.
    Instant.plusBeeps(int beepsToAdd)
    Returns a new Instant that represents this instant plus the given amount of beeps.
    Instant.plusDays(int daysToAdd)
    Returns a new Instant that represents the passed proportion of this instant's day on this instant's day plus the given amount of days, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.
    Instant.plusMilliseconds(long millisecondsToAdd)
    Returns a new Instant that represents this instant plus the given amount of milliseconds.
    Instant.plusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToAdd)
    Returns a new Instant that represents this instant plus the given proportion of a Day.
    Instant.plusSeconds(long secondsToAdd)
    Returns a new Instant that represents this instant plus the given amount of seconds.
    Instant.plusYears(int yearsToAdd)
    Returns a new Instant that represents the passed proportion of this instant's day on this instant's day plus the given amount of years, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.
    Methods in org.lukashian with parameters of type Instant
    Modifier and Type
    Method
    Description
    int
    Instant.compareTo(Instant other)
     
    boolean
    Day.contains(Instant instant)
    Returns whether the given non-null Instant, is inside this day.
    boolean
    Year.contains(Instant instant)
    Returns whether the given non-null Instant, is inside this year.
    boolean
    Day.containsNot(Instant instant)
    Returns whether the given non-null Instant, is not inside this day.
    boolean
    Year.containsNot(Instant instant)
    Returns whether the given non-null Instant, is not inside this year.
    int
    Returns the amount of beeps between this instant and the given non-null Instant, directionally.
    long
    Instant.differenceWith(Instant other)
    Returns the amount of milliseconds between this instant and the given non-null Instant, directionally.
    static String
    Formatter.format(Instant instant)
    Formats the given Instant using Formatter.format(Day) and Formatter.format(BigFraction), using a space to separate the two.
    static String
    Formatter.format(Instant instant, Formatter.DayFormat dayFormat, String daySeparator, Function<org.apache.commons.numbers.fraction.BigFraction,String> formatter)
    Formats the given Instant using Formatter.format(Day, DayFormat, String) and Formatter.format(BigFraction, Function), using a space to separate the two.
    static String
    Formatter.format(Instant instant, Formatter.DayFormat dayFormat, Function<org.apache.commons.numbers.fraction.BigFraction,String> formatter)
    Formats the given Instant using Formatter.format(Day, DayFormat) and Formatter.format(BigFraction, Function), using a space to separate the two.
    boolean
    Instant.isAfter(Instant other)
    Returns whether this instant is after the given non-null Instant.
    boolean
    Instant.isBefore(Instant other)
    Returns whether this instant is before the given non-null Instant.
    boolean
    Instant.isSameOrAfter(Instant other)
    Returns whether this instant is the same or after the given non-null Instant.
    boolean
    Instant.isSameOrBefore(Instant other)
    Returns whether this instant is the same or before the given non-null Instant.