withNewInterval

abstract fun withNewInterval(i: Interval): I

Creates a new object that is identical except that it exists on a different interval.