Uses of Class
org.lukashian.Instant
Packages that use Instant
-
Uses of Instant in org.lukashian
Classes in org.lukashian that implement interfaces with type arguments of type InstantModifier and TypeClassDescriptionfinal classRepresents a unique millisecond on the timeline.Methods in org.lukashian that return InstantModifier and TypeMethodDescriptionInstant.atNextDay()Returns a newInstantthat 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 newInstantthat 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 newInstantthat 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 newInstantthat represents the instant that occurs after the given proportion of this day has passed.Day.firstInstant()Year.firstInstant()Day.lastInstant()Year.lastInstant()Instant.minusBeeps(int beepsToSubtract) Returns a newInstantthat represents this instant minus the given amount of beeps.Instant.minusDays(int daysToSubtract) Returns a newInstantthat represents this instant's proportion of 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 this instant's day minus the given amount of days.Instant.minusMilliseconds(long millisecondsToSubtract) Returns a newInstantthat represents this instant minus the given amount of milliseconds.Instant.minusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToSubtract) Instant.minusSeconds(long secondsToSubtract) Returns a newInstantthat represents this instant minus the given amount of seconds.Instant.minusYears(int yearsToSubtract) Returns a newInstantthat represents this instant's proportion of day, on this instant's day minus the given amount of years.static InstantInstant.now()Returns the currentInstantof the default calendar instance.static InstantInstant.now(int calendarKey) Returns the currentInstantof the given calendar instance.static InstantInstant.of(int year, int day, int beeps) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day of the default calendar instance has passed.static InstantInstant.of(int year, int day, int beeps, int calendarKey) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day of the given calendar instance has passed.static InstantInstant.of(int year, int day, org.apache.commons.numbers.fraction.BigFraction proportionOfDay) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day of the default calendar instance has passed.static InstantInstant.of(int year, int day, org.apache.commons.numbers.fraction.BigFraction proportionOfDay, int calendarKey) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day of the given calendar instance has passed.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.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.static InstantInstant.ofEpoch(long epochMilliseconds) Creates a newInstantrepresenting the given number of milliseconds since the start of the default calendar instance.static InstantInstant.ofEpoch(long epochMilliseconds, int calendarKey) Creates a newInstantrepresenting the given number of milliseconds since the start of the given calendar instance.static InstantInstant.ofJavaInstant(Instant javaInstant) static InstantInstant.ofJavaInstant(Instant javaInstant, int calendarKey) static InstantInstant.ofUnixEpochMilliseconds(long unixEpochMilliseconds) Creates a newInstantrepresenting the amount of milliseconds since the UNIX Epoch of the default calendar instance.static InstantInstant.ofUnixEpochMilliseconds(long unixEpochMilliseconds, int calendarKey) Creates a newInstantrepresenting the amount of milliseconds since the UNIX Epoch of the given calendar instance.Instant.plusBeeps(int beepsToAdd) Returns a newInstantthat represents this instant plus the given amount of beeps.Instant.plusDays(int daysToAdd) Returns a newInstantthat represents this instant's proportion of 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 this instant's day plus the given amount of days.Instant.plusMilliseconds(long millisecondsToAdd) Returns a newInstantthat represents this instant plus the given amount of milliseconds.Instant.plusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToAdd) Instant.plusSeconds(long secondsToAdd) Returns a newInstantthat represents this instant plus the given amount of seconds.Instant.plusYears(int yearsToAdd) Returns a newInstantthat represents this instant's proportion of day, on this instant's day plus the given amount of years.Instant.toCalendar(int calendarKey) Returns the same point in time on the given calendar instance.Methods in org.lukashian with parameters of type InstantModifier and TypeMethodDescriptionintbooleanReturns whether the given non-nullInstant, is inside this day.booleanReturns whether the given non-nullInstant, is inside this year.booleanDay.containsNot(Instant instant) Returns whether the given non-nullInstant, is not inside this day.booleanYear.containsNot(Instant instant) Returns whether the given non-nullInstant, is not inside this year.intInstant.differenceInBeepsWith(Instant other) Returns the amount of beeps between this instant and the given non-nullInstant, directionally.longInstant.differenceWith(Instant other) Returns the amount of milliseconds between this instant and the given non-nullInstant, directionally.static StringFormats the givenInstantusingFormatter.format(Day)andFormatter.format(BigFraction), using a space to separate the two.static StringFormatter.format(Instant instant, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstantusingFormatter.format(Day)andFormatter.format(BigFraction, Function), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat) Formats the givenInstantusingFormatter.format(Day, DayFormat)andFormatter.format(BigFraction), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat, String daySeparator) Formats the givenInstantusingFormatter.format(Day, DayFormat, String)andFormatter.format(BigFraction), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat, String daySeparator, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstantusingFormatter.format(Day, DayFormat, String)andFormatter.format(BigFraction, Function), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstantusingFormatter.format(Day, DayFormat)andFormatter.format(BigFraction, Function), using a space to separate the two.booleanReturns whether this instant is after the given non-nullInstant.booleanReturns whether this instant is before the given non-nullInstant.booleanInstant.isSameOrAfter(Instant other) Returns whether this instant is the same or after the given non-nullInstant.booleanInstant.isSameOrBefore(Instant other) Returns whether this instant is the same or before the given non-nullInstant.