of

fun <V> of(interval: Interval, value: V): Segment<V>

Delegates to the constructor.

Can be more convenient in Java by avoiding the new keyword.