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

Method rangeContaining

output/java_guava/1.4.19/TreeRangeSet.java:113–124  ·  view source on GitHub ↗
(C value)

Source from the content-addressed store, hash-verified

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