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