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

Method closedOpen

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

Returns a range that contains all values greater than or equal to {@code lower} and strictly less than {@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 14.0

(C lower, C upper)

Source from the content-addressed store, hash-verified

167 * @since 14.0
168 */
169 public static <C extends Comparable<?>> Range<C> closedOpen(C lower, C upper) {
170 return create(Cut.belowValue(lower), Cut.belowValue(upper));
171 }
172
173 /**
174 * Returns a range that contains all values strictly greater than {@code lower} and less than or

Callers 15

closedOpenMethod · 0.95
createMethod · 0.95
testAddUnsupportedMethod · 0.95
testAddAllUnsupportedMethod · 0.95
testRemoveUnsupportedMethod · 0.95

Calls 2

createMethod · 0.95
belowValueMethod · 0.95

Tested by 15

createMethod · 0.76
testAddUnsupportedMethod · 0.76
testAddAllUnsupportedMethod · 0.76
testRemoveUnsupportedMethod · 0.76
testExhaustiveMethod · 0.76