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

Method span

corpus/java/training/guava/collect/TreeRangeMap.java:145–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 }
144
145 @Override
146 public Range<K> span() {
147 Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry();
148 Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry();
149 if (firstEntry == null) {
150 throw new NoSuchElementException();
151 }
152 return Range.create(
153 firstEntry.getValue().getKey().lowerBound, lastEntry.getValue().getKey().upperBound);
154 }
155
156 private void putRangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) {
157 entriesByLowerBound.put(lowerBound, new RangeMapEntry<K, V>(lowerBound, upperBound, value));

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
firstEntryMethod · 0.65
lastEntryMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected