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

Method span

output/java_guava/1.4.18/TreeRangeMap.java:142–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 @Override
143 public Range<K> span() {
144 Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry();
145 Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry();
146 if (firstEntry == null) {
147 throw new NoSuchElementException();
148 }
149 return Range.create(firstEntry.getValue().getKey().lowerBound, lastEntry.getValue().getKey().upperBound);
150 }
151
152 private void putRangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) {
153 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