contains

public boolean contains(T value)

Checks whether the passed value belongs to the interval

Return

true if the value belongs to the interval, false otherwise.

Parameters

value

the value to be checked


public boolean contains(Box<? extends Object> target)

Non-strict set containment between intervals

Return

true if the argument interval is contained, false otherwise

Parameters

target

interval to be checked

Throws

when the target is of a different type