(Cut<C> lowerBound, Cut<C> upperBound)
| 325 | final Cut<C> upperBound; |
| 326 | |
| 327 | private Range(Cut<C> lowerBound, Cut<C> upperBound) { |
| 328 | this.lowerBound = checkNotNull(lowerBound); |
| 329 | this.upperBound = checkNotNull(upperBound); |
| 330 | if (lowerBound.compareTo(upperBound) > 0 |
| 331 | || lowerBound == Cut.<C>aboveAll() |
| 332 | || upperBound == Cut.<C>belowAll()) { |
| 333 | throw new IllegalArgumentException("Invalid range: " + toString(lowerBound, upperBound)); |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | /** Returns {@code true} if this range has a lower endpoint. */ |
| 338 | public boolean hasLowerBound() { |
nothing calls this directly
no test coverage detected