contains

Checks whether the range contains the other one. This method is faster than checking if the range contains both of the endpoints of other.