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

Method closed

guava/src/com/google/common/collect/Range.java:157–159  ·  view source on GitHub ↗

Returns a range that contains all values greater than or equal to {@code lower} and less than or equal to {@code upper}. @throws IllegalArgumentException if {@code lower} is greater than {@code upper} @throws ClassCastException if {@code lower} and {@code upper} are not mutually comparable @since 1

(C lower, C upper)

Source from the content-addressed store, hash-verified

155 * @since 14.0
156 */
157 public static <C extends Comparable<?>> Range<C> closed(C lower, C upper) {
158 return create(Cut.belowValue(lower), Cut.aboveValue(upper));
159 }
160
161 /**
162 * Returns a range that contains all values greater than or equal to {@code lower} and strictly

Callers 15

intersectionMethod · 0.95
singletonMethod · 0.95
encloseAllMethod · 0.95
closedMethod · 0.95
setUpMethod · 0.95
QuantilesBenchmarkClass · 0.95

Calls 3

createMethod · 0.95
belowValueMethod · 0.95
aboveValueMethod · 0.95

Tested by 15

setUpMethod · 0.76
testAddUnsupportedMethod · 0.76
testAddAllUnsupportedMethod · 0.76
testRemoveUnsupportedMethod · 0.76
testExhaustiveMethod · 0.76