Interval

public void Interval()

Constructs an empty Interval


public void Interval(Number value)

Constructs a degenerated interval of the kind [value, value]

Parameters

value

the only element of the interval


public void Interval(Number start, Number end)

Constructs an interval of the kind [start, end]

Parameters

start

left bound of the interval

end

right bound of the interval


public void Interval(Number start, Number end, boolean openOnRight)

Constructs an interval of the kind [start, end) or [start, end]

Parameters

start

left bound of the interval

end

right bound of the interval

openOnRight

marks whether the right bound is included or not


public void Interval(Number start, Number end, boolean openOnLeft, boolean openOnRight)

Constructs an interval of any kind between start and end

Parameters

start

left bound of the interval

end

right bound of the interval

openOnLeft

marks whether the left bound is included or not

openOnRight

marks whether the right bound is included or not