public boolean contains(T element) {
    if (element == null) { return false; }
    return comparator.compare(element, min) > -1 && comparator.compare(element, max) < 1;
  }
public boolean contains ( T element ) { if ( element == null ) { return false ; } return comparator . compare ( element , min ) > - 1 && comparator . compare ( element , max ) < 1 ; }
<p>
Checks whether the specified element occurs within this range.
</p>

@param element the element to check for, null returns false
@return true if the specified element occurs within this range