MCPcopy
hub / github.com/google/guava / span

Method span

guava/src/com/google/common/collect/TreeRangeSet.java:164–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 @Override
165 public Range<C> span() {
166 Entry<Cut<C>, Range<C>> firstEntry = rangesByLowerBound.firstEntry();
167 Entry<Cut<C>, Range<C>> lastEntry = rangesByLowerBound.lastEntry();
168 if (firstEntry == null || lastEntry == null) {
169 /*
170 * Either both are null or neither is: Either the set is empty, or it's not. But we check both
171 * to make the nullness checker happy.
172 */
173 throw new NoSuchElementException();
174 }
175 return Range.create(firstEntry.getValue().lowerBound, lastEntry.getValue().upperBound);
176 }
177
178 @Override
179 public void add(Range<C> rangeToAdd) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected