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

Method getEntry

corpus/java/training/guava/collect/TreeRangeMap.java:112–122  ·  view source on GitHub ↗
(K key)

Source from the content-addressed store, hash-verified

110 }
111
112 @Override
113 @Nullable
114 public Entry<Range<K>, V> getEntry(K key) {
115 Map.Entry<Cut<K>, RangeMapEntry<K, V>> mapEntry =
116 entriesByLowerBound.floorEntry(Cut.belowValue(key));
117 if (mapEntry != null && mapEntry.getValue().contains(key)) {
118 return mapEntry.getValue();
119 } else {
120 return null;
121 }
122 }
123
124 @Override
125 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