MCPcopy Create free account
hub / github.com/antlr/codebuff / downTo

Method downTo

output/java_guava/1.4.18/Range.java:296–305  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

tailMapMethod · 0.95
tailMapMethod · 0.95
tailMapMethod · 0.95
tailSetImplMethod · 0.95
tailSetImplMethod · 0.95

Calls 2

greaterThanMethod · 0.95
atLeastMethod · 0.95

Tested by

no test coverage detected