Checks whether this range is before the specified element. @param element the element to check for, null returns false. @return true if this range is entirely before the specified element.
(final T element)
| 453 | * @return true if this range is entirely before the specified element. |
| 454 | */ |
| 455 | public boolean isBefore(final T element) { |
| 456 | if (element == null) { |
| 457 | return false; |
| 458 | } |
| 459 | return comparator.compare(element, maximum) > 0; |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * Checks whether this range is completely before the specified range. |