MCPcopy
hub / github.com/google/guava / downTo

Method downTo

guava/src/com/google/common/collect/Range.java:263–271  ·  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

261 * @since 14.0
262 */
263 public static <C extends Comparable<?>> Range<C> downTo(C endpoint, BoundType boundType) {
264 switch (boundType) {
265 case OPEN:
266 return greaterThan(endpoint);
267 case CLOSED:
268 return atLeast(endpoint);
269 }
270 throw new AssertionError();
271 }
272
273 private static final Range<Comparable> ALL = new Range<>(Cut.belowAll(), Cut.aboveAll());
274

Callers 11

tailMapMethod · 0.95
tailMapMethod · 0.95
tailMapMethod · 0.95
tailSetImplMethod · 0.95
tailSetImplMethod · 0.95
testSubRangeSetMethod · 0.95
TreeRangeSetTestClass · 0.95
testFromRangeOneEndMethod · 0.95
TreeRangeMapTestClass · 0.95

Calls 2

greaterThanMethod · 0.95
atLeastMethod · 0.95

Tested by 3

testSubRangeSetMethod · 0.76
testFromRangeOneEndMethod · 0.76