Uses of Record Class
com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
Packages that use InstantInterval
Package
Description
-
Uses of InstantInterval in com.thanlinardos.spring_enterprise_library.time
Methods in com.thanlinardos.spring_enterprise_library.time that return InstantInterval -
Uses of InstantInterval in com.thanlinardos.spring_enterprise_library.time.api
Methods in com.thanlinardos.spring_enterprise_library.time.api that return InstantIntervalModifier and TypeMethodDescriptionTimeProvider.instantFromNowPlusSeconds(long seconds) Creates anInstantIntervalstarting from now plus the given seconds. -
Uses of InstantInterval in com.thanlinardos.spring_enterprise_library.time.model
Methods in com.thanlinardos.spring_enterprise_library.time.model that return InstantIntervalModifier and TypeMethodDescriptionInstantInterval.boundStartDateIfValid(Instant lowerBound) Returns a new version of this InstantInterval, where the start date is bounded according toboundStart(Instant).static InstantIntervalInstantInterval.forIsoDates(String startDate, String endDate) Constructs anInstantIntervalusing ISO 8601 formatted dates (such as "2007-12-03").static InstantIntervalInstantInterval.forIsoDates(String startDate, String endDate, TimeUnit accuracy, ZoneOffset zoneOffset) Constructs anInstantIntervalusing ISO 8601 formatted dates (such as "2007-12-03").static InstantIntervalInstantInterval.forIsoDatesMilliUTC(String startDate, String endDate) Constructs anInstantIntervalsame as inforIsoDates(String, String, TimeUnit, ZoneOffset), but using milliseconds accuracy and UTC zoneOffset.static InstantIntervalInstantInterval.forIsoInstants(String start, String end) Constructs anInstantIntervalusing ISO 8601 formatted Instants (such as "2007-12-03T10:15:30.00Z").static InstantIntervalInstantInterval.forIsoMonth(String month) Constructs anInstantIntervalusing a ISO 8601 formatted month ("YYYY-MM").static InstantIntervalInstantInterval.forIsoYear(int year) Constructs anInstantIntervalusing a year.static InstantIntervalInstantInterval.fromIsoDateToNullMilliUTC(String startDate) Constructs anInstantIntervalsame as inforIsoDates(String, String, TimeUnit, ZoneOffset), but using milliseconds accuracy and UTC zoneOffset, and with a null end date.Methods in com.thanlinardos.spring_enterprise_library.time.model that return types with arguments of type InstantIntervalModifier and TypeMethodDescriptionReturns a new version of this InstantInterval, where the end date is bounded according to the givenupperBound.InstantInterval.boundStart(Instant lowerBound) Returns a new version of this InstantInterval, where the start date is bounded according to the givenlowerBoundEquivalent to callinggetOverlap(InstantInterval)with an InstantInterval starting fromlowerBoundand ending in null.InstantInterval.getNotOverlaps(InstantInterval... intervals) Vararg variant ofgetNotOverlaps(Collection)InstantInterval.getNotOverlaps(Collection<InstantInterval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this InstantIntervalInstantInterval.getOverlap(InstantInterval interval) Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlapInstantInterval.getOverlaps(InstantInterval... intervals) Vararg variant ofgetOverlaps(Collection)InstantInterval.getOverlaps(Collection<InstantInterval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this InstantIntervalInstantInterval.getOverlaps(Collection<InstantInterval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this InstantInterval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervalsstatic List<InstantInterval> InstantInterval.normalize(Collection<InstantInterval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.static List<InstantInterval> InstantInterval.normalize(Collection<InstantInterval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.InstantInterval.relativeComplement(Collection<InstantInterval> intervals) Returns the list of the given intervals, excluding any elements equal to this InstantIntervalstatic List<InstantInterval> InstantInterval.split(Collection<InstantInterval> intervals) Returns a sorted list of intervals, covering the same Instants as the input, but without any intervals overlapping.InstantInterval.subtract(InstantInterval interval) Returns the remainder of this interval, after subtracting the overlap with the given interval.InstantInterval.subtract(Collection<InstantInterval> intervals) Returns the remainder of this InstantInterval, after subtracting the overlap with the given intervals.Methods in com.thanlinardos.spring_enterprise_library.time.model with parameters of type InstantIntervalModifier and TypeMethodDescriptionbooleanInstantInterval.adjacent(InstantInterval interval) Checks if the givenInstantIntervalis touching this interval.intInstantInterval.compareTo(InstantInterval o) booleanInstantInterval.contains(InstantInterval interval) Checks if the givenInstantIntervalis fully contained within thisInstantInterval.InstantInterval.getNotOverlaps(InstantInterval... intervals) Vararg variant ofgetNotOverlaps(Collection)InstantInterval.getOverlap(InstantInterval interval) Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlapInstantInterval.getOverlaps(InstantInterval... intervals) Vararg variant ofgetOverlaps(Collection)booleanInstantInterval.overlaps(InstantInterval interval) Checks if thisInstantIntervaloverlaps the given interval.booleanInstantInterval.partiallyOverlaps(InstantInterval interval) Checks if thisInstantIntervalpartially overlaps the given interval, meaning that they overlap but neither contains the other.InstantInterval.subtract(InstantInterval interval) Returns the remainder of this interval, after subtracting the overlap with the given interval.Method parameters in com.thanlinardos.spring_enterprise_library.time.model with type arguments of type InstantIntervalModifier and TypeMethodDescriptionstatic booleanInstantInterval.anyOverlaps(Collection<InstantInterval> intervals) Returns true if any of the given intervals overlap with each other, otherwise falseInstantInterval.getNotOverlaps(Collection<InstantInterval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this InstantIntervalInstantInterval.getOverlaps(Collection<InstantInterval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this InstantIntervalInstantInterval.getOverlaps(Collection<InstantInterval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this InstantInterval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervalsstatic List<InstantInterval> InstantInterval.normalize(Collection<InstantInterval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.static List<InstantInterval> InstantInterval.normalize(Collection<InstantInterval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.booleanInstantInterval.overlaps(Collection<InstantInterval> intervals) Returns true if thisInstantIntervaloverlaps with any of the given intervals, otherwise false.InstantInterval.relativeComplement(Collection<InstantInterval> intervals) Returns the list of the given intervals, excluding any elements equal to this InstantIntervalstatic List<InstantInterval> InstantInterval.split(Collection<InstantInterval> intervals) Returns a sorted list of intervals, covering the same Instants as the input, but without any intervals overlapping.InstantInterval.subtract(Collection<InstantInterval> intervals) Returns the remainder of this InstantInterval, after subtracting the overlap with the given intervals.