()
| 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) { |
nothing calls this directly
no test coverage detected