Checks whether this range is completely after 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 after the specified range. @throws Runti
(final Range<T> otherRange)
| 440 | * @throws RuntimeException if ranges cannot be compared. |
| 441 | */ |
| 442 | public boolean isAfterRange(final Range<T> otherRange) { |
| 443 | if (otherRange == null) { |
| 444 | return false; |
| 445 | } |
| 446 | return isAfter(otherRange.maximum); |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Checks whether this range is before the specified element. |