()
| 143 | } |
| 144 | |
| 145 | @Override |
| 146 | public Range<K> span() { |
| 147 | Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry(); |
| 148 | Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry(); |
| 149 | if (firstEntry == null) { |
| 150 | throw new NoSuchElementException(); |
| 151 | } |
| 152 | return Range.create( |
| 153 | firstEntry.getValue().getKey().lowerBound, lastEntry.getValue().getKey().upperBound); |
| 154 | } |
| 155 | |
| 156 | private void putRangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) { |
| 157 | entriesByLowerBound.put(lowerBound, new RangeMapEntry<K, V>(lowerBound, upperBound, value)); |
nothing calls this directly
no test coverage detected