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

Method encloses

output/java_guava/1.4.18/ImmutableRangeSet.java:135–145  ·  view source on GitHub ↗
(Range<C> otherRange)

Source from the content-addressed store, hash-verified

133 }
134
135 @Override
136 public boolean encloses(Range<C> otherRange) {
137 int index = SortedLists.binarySearch(
138 ranges,
139 Range.<C>lowerBoundFn(),
140 otherRange.lowerBound,
141 Ordering.natural(),
142 ANY_PRESENT,
143 NEXT_LOWER);
144 return index != -1 && ranges.get(index).encloses(otherRange);
145 }
146
147 @Override
148 public Range<C> rangeContaining(C value) {

Callers

nothing calls this directly

Calls 5

binarySearchMethod · 0.95
lowerBoundFnMethod · 0.95
naturalMethod · 0.95
enclosesMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected