combine

public static Interval combine(@NotNull() @NotNull() Interval i1, @NotNull() @NotNull() Interval i2)

Generates a new interval by combining two of them

Return

a new interval of the kind (a1 + a2, b1 + b2)

Parameters

i1

first interval (a1, b1)

i2

second interval (a2, b2)