Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive (open), with no upper bound. @since 14.0
(C endpoint, BoundType boundType)
| 294 | |
| 295 | |
| 296 | public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) { |
| 297 | switch (boundType) { |
| 298 | case OPEN: |
| 299 | return greaterThan(endpoint); |
| 300 | case CLOSED: |
| 301 | return atLeast(endpoint); |
| 302 | default: |
| 303 | throw new AssertionError(); |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | private static final Range<Comparable> ALL = new Range<Comparable>(Cut.belowAll(), Cut.aboveAll()); |
| 308 |
no test coverage detected