Methods Reference
This page provides an index of methods available in Ephemeral, categorized by interface and interval type. For in-depth guides, diagrams, and code examples, visit the dedicated documentation sections:
- Basic Intervals: Pure boundary operations and metric-assisted extensions on
IBasicInterval<TBoundary>. - Full Intervals: Intrinsic length, translation, and subtraction on
FullInterval<TBoundary, TLength>. - Interval Sets: Ordered, disjoint collections of intervals via
IDisjointIntervalSet<TBoundary, TLength>. - Custom Intervals: How to create domain-specific interval types and custom
ILengthOperatorimplementations.
Methods available from IBasicInterval<TBoundary> (Basic Intervals)
See the Basic Intervals Guide for full descriptions and visual diagrams.
Pure Boundary Methods
IsValidInterval() : boolCovers(t: TBoundary) : boolCovers(i: IBasicInterval<TBoundary>) : boolIntersects(i: IBasicInterval<TBoundary>) : boolIntersect(i: IBasicInterval<TBoundary>) : Option<BasicInterval<TBoundary>>Join(i: IBasicInterval<TBoundary>) : BasicInterval<TBoundary>IsContiguouslyFollowedBy(i: IBasicInterval<TBoundary>) : boolIsContiguouslyPrecededBy(i: IBasicInterval<TBoundary>) : boolStartsBefore(i: IBasicInterval<TBoundary>) : boolIsEquivalentIntervalTo(i: IBasicInterval<TBoundary>) : bool
Metric-Assisted Extension Methods (Requires Measurer)
Measure(measurer: ILengthOperator<TBoundary, TLength>) : TLengthWithMeasure(measurer: ILengthOperator<TBoundary, TLength>) : BasicMeasuredInterval<TBoundary, TLength>Shift(offset: TLength, measurer: ILengthOperator<TBoundary, TLength>) : BasicInterval<TBoundary>ShiftStart(offset: TLength, measurer: ILengthOperator<TBoundary, TLength>) : BasicInterval<TBoundary>ShiftEnd(offset: TLength, measurer: ILengthOperator<TBoundary, TLength>) : BasicInterval<TBoundary>LengthOfIntersect(i: IBasicInterval<TBoundary>, measurer: ICanMeasure<TBoundary, TLength>) : TLengthSubtract(i: IBasicInterval<TBoundary>, measurer: ILengthOperator<TBoundary, TLength>) : DisjointIntervalSet<TBoundary, TLength>Union(i: IBasicInterval<TBoundary>, measurer: ILengthOperator<TBoundary, TLength>) : DisjointIntervalSet<TBoundary, TLength>Partition(step: TLength, measurer: ILengthOperator<TBoundary, TLength>, intermediateEndsClosed: bool = false) : DisjointIntervalSet<TBoundary, TLength>
Methods available from FullInterval<TBoundary, TLength> (Full Intervals)
See the Full Intervals Guide for full descriptions and visual diagrams.
DefaultMeasure() : TLengthShift(offset: TLength) : BasicMeasuredInterval<TBoundary, TLength>ShiftStart(offset: TLength) : BasicMeasuredInterval<TBoundary, TLength>ShiftEnd(offset: TLength) : BasicMeasuredInterval<TBoundary, TLength>LengthOfIntersect(i: IBasicInterval<TBoundary>) : TLengthSubtract(i: IBasicInterval<TBoundary>) : DisjointIntervalSet<TBoundary, TLength>ToIntervalSet() : DisjointIntervalSet<TBoundary, TLength>Partition(step: TLength, intermediateEndsClosed: bool = false) : DisjointIntervalSet<TBoundary, TLength>- Inherited from
BasicInterval<TBoundary>:IsValidInterval,Covers,Intersects,Intersect,Join,IsContiguouslyFollowedBy,IsContiguouslyPrecededBy,StartsBefore,IsEquivalentIntervalTo.
Methods available from IDisjointIntervalSet<TBoundary, TLength> (Interval Sets)
See the Interval Sets Guide for concepts, invariants, and details.
Consolidate() : DisjointIntervalSet<TBoundary, TLength>Covers(t: TBoundary) : boolCovers(i: IBasicInterval<TBoundary>) : boolIntersect(i: IBasicInterval<TBoundary>) : DisjointIntervalSet<TBoundary, TLength>Join(i: IBasicInterval<TBoundary>) : DisjointIntervalSet<TBoundary, TLength>Join(s: IDisjointIntervalSet<TBoundary, TLength>) : DisjointIntervalSet<TBoundary, TLength>GetBoundingInterval() : Option<BasicMeasuredInterval<TBoundary, TLength>>
Factory Methods
Basic Intervals (BasicInterval<TBoundary>)
BasicInterval<TBoundary>.CreateClosed(start, end)BasicInterval<TBoundary>.CreateOpen(start, end)BasicInterval<TBoundary>.CreatePoint(boundary)BasicInterval<TBoundary>.From(interval)
Full Interval Utility Classes (DateTimeOffsetInterval, IntInterval, DoubleInterval, etc.)
CreateClosed(start, end)CreateOpen(start, end)CreatePoint(boundary)
Interval Sets (DisjointIntervalSet<TBoundary, TLength>)
DisjointIntervalSet(lengthOperator)DisjointIntervalSet(lengthOperator, params intervals[])DisjointIntervalSet(lengthOperator, IEnumerable<intervals>)