In contrast to RangeSet, no "coalescing" is done of connected ranges, even if they are mapped to the same value.
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Map | |
| public void | |
| public boolean | |
| public V | |
| public Map. | getEntry(K key)
Returns the range containing this key and its associated value, if such a range is present in
the range map, or |
| public int | |
| public void | merge(Range<K> range, V value, BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction)
Merges a value into a part of the map by applying a remapping function. |
| public void | |
| public void | |
| public void | putCoalescing(Range<K> range, V value)
Maps a range to a specified value, coalescing this range with any existing ranges with the same value that are connected to this range. |
| public void | |
| public Range | |
| public RangeMap | |
| public String |
| asDescendingMapOfRanges | back to summary |
|---|---|
| public Map Returns a view of this range map as an unmodifiable The returned It is guaranteed that no empty ranges will be in the returned
| |
| asMapOfRanges | back to summary |
|---|---|
| public Map Returns a view of this range map as an unmodifiable The returned It is guaranteed that no empty ranges will be in the returned | |
| clear | back to summary |
|---|---|
| public void clear() Removes all associations from this range map (optional operation). | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Returns
| |
| get | back to summary |
|---|---|
| public V get(K key) Returns the value associated with the specified key, or Specifically, if any range in this range map contains the specified key, the value associated with that range is returned.
| |
| getEntry | back to summary |
|---|---|
| public Map. Returns the range containing this key and its associated value, if such a range is present in
the range map, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Returns
| |
| merge | back to summary |
|---|---|
| public void merge(Range<K> range, V value, BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction) Merges a value into a part of the map by applying a remapping function. If any parts of the range are already present in this map, those parts are mapped to new
values by applying the remapping function. The remapping function accepts the map's existing
value for that part of the range and the given value. It returns the value to be associated
with that part of the map, or it returns Any parts of the range not already present in this map are mapped to the specified value,
unless the value is Any existing entry spanning either range boundary may be split at the boundary, even if the
merge does not affect its value. For example, if
| |
| put | back to summary |
|---|---|
| public void put(Range<K> range, V value) Maps a range to a specified value (optional operation). Specifically, after a call to If | |
| putAll | back to summary |
|---|---|
| public void putAll(RangeMap<K, ? extends V> rangeMap) Puts all the associations from | |
| putCoalescing | back to summary |
|---|---|
| public void putCoalescing(Range<K> range, V value) Maps a range to a specified value, coalescing this range with any existing ranges with the same value that are connected to this range. The behavior of Even if the input range is empty, if it is connected on both sides by ranges mapped to the same value those two ranges will be coalesced. Note coalescing requires calling
| |
| remove | back to summary |
|---|---|
| public void remove(Range<K> range) Removes all associations from this range map in the specified range (optional operation). If | |
| span | back to summary |
|---|---|
| public Range Returns the minimal range enclosing the ranges in this
| |
| subRangeMap | back to summary |
|---|---|
| public RangeMap Returns a view of the part of this range map that intersects with For example, if The returned range map supports all optional operations that this range map supports, except
for The returned range map will throw an | |
| toString | back to summary |
|---|---|
| public String toString() Returns a readable string representation of this range map.
| |