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

Method rangeContaining

output/java_guava/1.4.18/TreeRangeSet.java:111–122  ·  view source on GitHub ↗
(C value)

Source from the content-addressed store, hash-verified

109 }
110
111 @Override
112 @Nullable
113 public Range<C> rangeContaining(C value) {
114 checkNotNull(value);
115 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(Cut.belowValue(value));
116 if (floorEntry != null && floorEntry.getValue().contains(value)) {
117 return floorEntry.getValue();
118 } else {
119 // TODO(kevinb): revisit this design choice
120 return null;
121 }
122 }
123
124 @Override
125 public boolean intersects(Range<C> range) {

Callers

nothing calls this directly

Calls 5

belowValueMethod · 0.95
containsMethod · 0.65
getValueMethod · 0.65
checkNotNullMethod · 0.45
floorEntryMethod · 0.45

Tested by

no test coverage detected