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

Method open

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

Returns a range that contains all values strictly greater than {@code lower} and strictly less than {@code upper}. @throws IllegalArgumentException if {@code lower} is greater than <i>or equal to</i> {@code upper} @throws ClassCastException if {@code lower} and {@code upper} are not mutually co

(C lower, C upper)

Source from the content-addressed store, hash-verified

143 * @since 14.0
144 */
145 public static <C extends Comparable<?>> Range<C> open(C lower, C upper) {
146 return create(Cut.aboveValue(lower), Cut.belowValue(upper));
147 }
148
149 /**
150 * Returns a range that contains all values greater than or equal to {@code lower} and less than

Callers 15

testAddUnsupportedMethod · 0.95
testExhaustiveMethod · 0.95
testUnionMethod · 0.95
testIntersectionMethod · 0.95
testDifferenceMethod · 0.95
testSerializationMethod · 0.95

Calls 3

createMethod · 0.95
aboveValueMethod · 0.95
belowValueMethod · 0.95

Tested by 15

testAddUnsupportedMethod · 0.76
testExhaustiveMethod · 0.76
testUnionMethod · 0.76
testIntersectionMethod · 0.76
testDifferenceMethod · 0.76
testSerializationMethod · 0.76
testNullPointersMethod · 0.76