Checks whether this range is completely before the specified range. This method may fail if the ranges have two different comparators or element types. @param otherRange the range to check, null returns false. @return true if this range is completely before the specified range. @throws Run
(final Range<T> otherRange)
| 469 | * @throws RuntimeException if ranges cannot be compared. |
| 470 | */ |
| 471 | public boolean isBeforeRange(final Range<T> otherRange) { |
| 472 | if (otherRange == null) { |
| 473 | return false; |
| 474 | } |
| 475 | return isBefore(otherRange.minimum); |
| 476 | } |
| 477 | |
| 478 | /** |
| 479 | * Checks whether this range ends with the specified element. |