()
| 193 | } |
| 194 | |
| 195 | @Override |
| 196 | public Range<K> span() { |
| 197 | Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry(); |
| 198 | Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry(); |
| 199 | // Either both are null or neither is, but we check both to satisfy the nullness checker. |
| 200 | if (firstEntry == null || lastEntry == null) { |
| 201 | throw new NoSuchElementException(); |
| 202 | } |
| 203 | return Range.create( |
| 204 | firstEntry.getValue().getKey().lowerBound, lastEntry.getValue().getKey().upperBound); |
| 205 | } |
| 206 | |
| 207 | private void putRangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) { |
| 208 | entriesByLowerBound.put(lowerBound, new RangeMapEntry<K, V>(lowerBound, upperBound, value)); |
nothing calls this directly
no test coverage detected