filterByDuration

open fun filterByDuration(validInterval: Interval): THIS

(DOC) Removes objects whose duration is outside a given valid interval.

Note that while intervals are often used to represent a range of time instants, they are actually defined by relative durations from a zero point which is unknown by the interval (typically the plan start time). This means that intervals can also be used to represent a range of durations too.

Objects that extend beyond the evaluation bounds are still considered with their full extent, even if CollectOptions.truncateMarginal is true. In that case, the margin is truncated after it has passed the filter.

Parameters

validInterval

objects with durations outside this interval will be removed