TimelineTemporalIndex<T> class
Immutable temporal index for fast range queries.
Entries are sorted once. A monotonic prefix of maximum end values lets the query jump directly to the first interval that can still intersect the requested range, then scan only plausible candidates.
- Annotations
Constructors
-
TimelineTemporalIndex.build(Iterable<
TimelineEntry< source, {bool includeInvalid = false})T> > -
factory
Properties
-
entries
→ List<
TimelineTemporalHit< T> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
invalidEntries
→ List<
TimelineEntry< T> > -
final
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- length → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
at(
DateTime instant) → List< TimelineEntry< T> > -
nextAfter(
DateTime instant) → TimelineEntry< T> ? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousBefore(
DateTime instant) → TimelineEntry< T> ? -
query(
{required DateTime start, required DateTime end}) → List< TimelineEntry< T> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited