Uses of Record Class
com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
Packages that use TimeInterval
Package
Description
-
Uses of TimeInterval in com.thanlinardos.spring_enterprise_library.time
Methods in com.thanlinardos.spring_enterprise_library.time that return TimeInterval -
Uses of TimeInterval in com.thanlinardos.spring_enterprise_library.time.api
Methods in com.thanlinardos.spring_enterprise_library.time.api that return TimeIntervalModifier and TypeMethodDescriptionTimeProvider.timeFromNowPlusSeconds(long seconds) Creates aTimeIntervalstarting from now plus the given seconds. -
Uses of TimeInterval in com.thanlinardos.spring_enterprise_library.time.model
Methods in com.thanlinardos.spring_enterprise_library.time.model that return TimeIntervalModifier and TypeMethodDescriptionTimeInterval.boundStartDateIfValid(LocalDateTime lowerBound) Returns a new version of this interval, where the start date is bounded according toboundStart(LocalDateTime).static TimeIntervalTimeInterval.forIsoDateMilliToNull(String startDate) Constructs an open-endedTimeIntervalsame as inforIsoDateToNull(String), but with overridden millisecond accuracy.static TimeIntervalTimeInterval.forIsoDates(String startDate, String endDate) Constructs anTimeIntervalusing ISO 8601 formatted dates (such as "2007-12-03").static TimeIntervalTimeInterval.forIsoDates(String startDate, String endDate, TimeUnit accuracy) Constructs anTimeIntervalusing ISO 8601 formatted dates (such as "2007-12-03"), with the given accuracy to override the default with.static TimeIntervalTimeInterval.forIsoDatesMilli(String startDate, String endDate) Constructs anTimeIntervalsame as inforIsoDates(String, String, TimeUnit), but with overridden millisecond accuracy.static TimeIntervalTimeInterval.forIsoDateTimes(String start, String end) Constructs anTimeIntervalusing ISO 8601 formatted date times (such as "2007-12-03T10:15:30.00").static TimeIntervalTimeInterval.forIsoDateToNull(String startDate) Constructs anTimeIntervalusing ISO 8601 formatted date (such as "2007-12-03"), starting from the given date time and with open end.static TimeIntervalTimeInterval.forIsoMonth(String month) Constructs anTimeIntervalusing a ISO 8601 formatted month ("YYYY-MM").static TimeIntervalTimeInterval.forIsoYear(int year) Constructs anTimeIntervalusing a year.Methods in com.thanlinardos.spring_enterprise_library.time.model that return types with arguments of type TimeIntervalModifier and TypeMethodDescriptionTimeInterval.boundEnd(LocalDateTime upperBound) Returns a new version of this interval, where the end date is bounded according to the givenupperBound.TimeInterval.boundStart(LocalDateTime lowerBound) Returns a new version of this interval, where the start date is bounded according to the givenlowerBoundEquivalent to callinggetOverlap(TimeInterval)with an interval starting fromlowerBoundand ending in null.TimeInterval.getNotOverlaps(TimeInterval... intervals) Vararg variant ofgetNotOverlaps(Collection)TimeInterval.getNotOverlaps(Collection<TimeInterval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this intervalTimeInterval.getOverlap(TimeInterval interval) Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlapTimeInterval.getOverlaps(TimeInterval... intervals) Vararg variant ofgetOverlaps(Collection)TimeInterval.getOverlaps(Collection<TimeInterval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this intervalTimeInterval.getOverlaps(Collection<TimeInterval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervalsstatic List<TimeInterval> TimeInterval.normalize(Collection<TimeInterval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.static List<TimeInterval> TimeInterval.normalize(Collection<TimeInterval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.TimeInterval.relativeComplement(Collection<TimeInterval> intervals) Returns the list of the given intervals, excluding any elements equal to this intervalstatic List<TimeInterval> TimeInterval.split(Collection<TimeInterval> intervals) Returns a sorted list of intervals, covering the same LocalDateTimes as the input, but without any intervals overlapping.TimeInterval.subtract(TimeInterval interval) Returns the remainder of this interval, after subtracting the overlap with the given intervalTimeInterval.subtract(Collection<TimeInterval> intervals) Returns the remainder of this interval, after subtracting the overlap with the given intervalsMethods in com.thanlinardos.spring_enterprise_library.time.model with parameters of type TimeIntervalModifier and TypeMethodDescriptionbooleanTimeInterval.adjacent(TimeInterval interval) Checks if the givenTimeIntervalis touching this interval.intTimeInterval.compareTo(TimeInterval o) booleanTimeInterval.contains(TimeInterval interval) Checks if the givenTimeIntervalis fully contained within this interval.TimeInterval.getNotOverlaps(TimeInterval... intervals) Vararg variant ofgetNotOverlaps(Collection)TimeInterval.getOverlap(TimeInterval interval) Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlapTimeInterval.getOverlaps(TimeInterval... intervals) Vararg variant ofgetOverlaps(Collection)booleanTimeInterval.overlaps(TimeInterval interval) Checks if thisTimeIntervaloverlaps the given interval.booleanTimeInterval.partiallyOverlaps(TimeInterval interval) Checks if thisTimeIntervalpartially overlaps the given interval, meaning that they overlap but neither contains the other.TimeInterval.subtract(TimeInterval interval) Returns the remainder of this interval, after subtracting the overlap with the given intervalMethod parameters in com.thanlinardos.spring_enterprise_library.time.model with type arguments of type TimeIntervalModifier and TypeMethodDescriptionstatic booleanTimeInterval.anyOverlaps(Collection<TimeInterval> intervals) Returns true if any of the given intervals overlap with each other, otherwise falseTimeInterval.getNotOverlaps(Collection<TimeInterval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this intervalTimeInterval.getOverlaps(Collection<TimeInterval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this intervalTimeInterval.getOverlaps(Collection<TimeInterval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervalsstatic List<TimeInterval> TimeInterval.normalize(Collection<TimeInterval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.static List<TimeInterval> TimeInterval.normalize(Collection<TimeInterval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.booleanTimeInterval.overlaps(Collection<TimeInterval> intervals) Checks if thisTimeIntervaloverlaps with any of the given intervals.TimeInterval.relativeComplement(Collection<TimeInterval> intervals) Returns the list of the given intervals, excluding any elements equal to this intervalstatic List<TimeInterval> TimeInterval.split(Collection<TimeInterval> intervals) Returns a sorted list of intervals, covering the same LocalDateTimes as the input, but without any intervals overlapping.TimeInterval.subtract(Collection<TimeInterval> intervals) Returns the remainder of this interval, after subtracting the overlap with the given intervals