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

Method getEntry

output/java_guava/1.4.17/TreeRangeMap.java:110–119  ·  view source on GitHub ↗
(K key)

Source from the content-addressed store, hash-verified

108 }
109
110 @Override
111 @Nullable
112 public Entry<Range<K>, V> getEntry(K key) {
113 Map.Entry<Cut<K>, RangeMapEntry<K, V>> mapEntry = entriesByLowerBound.floorEntry(Cut.belowValue(key));
114 if (mapEntry != null && mapEntry.getValue().contains(key)) {
115 return mapEntry.getValue();
116 } else {
117 return null;
118 }
119 }
120
121 @Override
122 public void put(Range<K> range, V value) {

Callers 1

getMethod · 0.95

Calls 4

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

Tested by

no test coverage detected