Uses of Record Class
com.thanlinardos.spring_enterprise_library.time.model.Interval
Packages that use Interval
Package
Description
-
Uses of Interval in com.thanlinardos.spring_enterprise_library.time.api
Methods in com.thanlinardos.spring_enterprise_library.time.api that return IntervalModifier and TypeMethodDescriptionDateTemporal.getInterval()Gets the date interval of the temporal entity. -
Uses of Interval in com.thanlinardos.spring_enterprise_library.time.model
Methods in com.thanlinardos.spring_enterprise_library.time.model that return IntervalModifier and TypeMethodDescriptionInterval.boundStartDateIfValid(LocalDate lowerBound) Returns a new version of this interval, where the start date is bounded according toboundStartDate(LocalDate).static IntervalInterval.forIsoDates(String startDate, String endDate) Constructs anIntervalusing ISO 8601 formatted dates ("YYYY-MM-DD").static IntervalInterval.forIsoMonth(String month) Constructs anIntervalusing a ISO 8601 formatted month ("YYYY-MM").static IntervalInterval.forIsoYear(int year) Constructs anIntervalusing a year.Interval.getInterval()Methods in com.thanlinardos.spring_enterprise_library.time.model that return types with arguments of type IntervalModifier and TypeMethodDescriptionInterval.boundEndDate(LocalDate upperBound) Returns a new version of this interval, where the end date is bounded according to the givenupperBound.Interval.boundStartDate(LocalDate lowerBound) Returns a new version of this interval, where the start date is bounded according to the givenlowerBound.Interval.getNotOverlaps(Interval... intervals) Vararg variant ofgetNotOverlaps(Collection).Interval.getNotOverlaps(Collection<Interval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this interval.Interval.getOverlap(Interval interval) Returns the overlap between this Interval and the given interval, otherwise an empty Optional if there is no overlap.Interval.getOverlaps(Interval... intervals) Vararg variant ofgetOverlaps(Collection)Interval.getOverlaps(Collection<Interval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval.Interval.getOverlaps(Collection<Interval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval.Interval.normalize(Collection<Interval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.Interval.normalize(Collection<Interval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.Interval.relativeComplement(Collection<Interval> intervals) Returns the list of the given intervals, excluding any elements equal to this interval.Interval.split(Collection<Interval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.Returns the remainder of this interval, after subtracting the overlap with the given interval.Interval.subtract(Collection<Interval> intervals) Returns the remainder of this interval, after subtracting the overlap with the given intervals.Methods in com.thanlinardos.spring_enterprise_library.time.model with parameters of type IntervalModifier and TypeMethodDescriptionbooleanChecks if the givenIntervalis touching this Interval.intbooleanChecks if thisIntervalfully contains the given Interval.Interval.getNotOverlaps(Interval... intervals) Vararg variant ofgetNotOverlaps(Collection).Interval.getOverlap(Interval interval) Returns the overlap between this Interval and the given interval, otherwise an empty Optional if there is no overlap.Interval.getOverlaps(Interval... intervals) Vararg variant ofgetOverlaps(Collection)booleanChecks if thisIntervaloverlaps the given Interval.booleanInterval.partiallyOverlaps(Interval interval) Checks if thisIntervalpartially overlaps the given Interval, meaning they overlap but neither contains the other.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 IntervalModifier and TypeMethodDescriptionstatic booleanInterval.anyOverlaps(Collection<Interval> intervals) Returns true if any of the given intervals overlap with each other, otherwise false.Interval.getNotOverlaps(Collection<Interval> intervals) Returns a normalized list of the portions ofintervalsthat do not overlap with this interval.Interval.getOverlaps(Collection<Interval> intervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval.Interval.getOverlaps(Collection<Interval> intervals, boolean mergeAdjacentIntervals) Returns a normalized (seenormalize(Collection)) list of overlaps between the given intervals and this interval.Interval.normalize(Collection<Interval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.Interval.normalize(Collection<Interval> intervals, boolean mergeAdjacentIntervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.booleanInterval.overlaps(Collection<Interval> intervals) Checks if thisIntervaloverlaps with any of the given intervals, otherwise false.Interval.relativeComplement(Collection<Interval> intervals) Returns the list of the given intervals, excluding any elements equal to this interval.Interval.split(Collection<Interval> intervals) Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.Interval.subtract(Collection<Interval> intervals) Returns the remainder of this interval, after subtracting the overlap with the given intervals.Constructors in com.thanlinardos.spring_enterprise_library.time.model with parameters of type IntervalModifierConstructorDescriptionInstantInterval(Interval interval) Constructs anInstantIntervalfor the givenInterval.TimeInterval(Interval interval) Constructs aTimeIntervalfor the givenInterval.