RangeMap whose contents will never change, with many other important properties
detailed at ImmutableCollection.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | ImmutableRangeMap.
This class is used to serialize ImmutableRangeMap instances. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ImmutableRangeMap | |
| private final transient ImmutableList | |
| private static final long | |
| private final transient ImmutableList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ImmutableMap | asDescendingMapOfRanges()
Implements com. Map<Range<K>, V>.
|
| public ImmutableMap | asMapOfRanges()
Implements com. Map<Range<K>, V>.
|
| public static <K extends Comparable | |
| public final void | clear()
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| public static <K extends Comparable | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Implements com. true if obj is another RangeMap that has an equivalent asMapOfRanges().
|
| public V | get(K key)
Implements com. null if there is no such value.
|
| public Map. | getEntry(K key)
Implements com. null otherwise.
|
| public int | hashCode()
Overrides java. Implements com. asMapOfRanges().hashCode().
|
| public final void | merge(Range<K> range, V value, BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction)
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| public static <K extends Comparable | |
| public static <K extends Comparable | |
| public final void | put(Range<K> range, V value)
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| public final void | putAll(RangeMap<K, ? extends V> rangeMap)
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| public final void | putCoalescing(Range<K> range, V value)
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| private void | |
| public final void | remove(Range<K> range)
Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the RangeMap unmodified.
|
| public Range | span()
Implements com. RangeMap.
|
| public ImmutableRangeMap | subRangeMap(final Range<K> range)
Implements com. range.
|
| public static <T extends @Nullable Object, K extends Comparable | toImmutableRangeMap(Function<? super T, Range<K>> keyFunction, Function<? super T, ? extends V> valueFunction)
Returns a |
| public String | toString()
Overrides java. Implements com. |
| pack-priv Object |
| EMPTY | back to summary |
|---|---|
| private static final ImmutableRangeMap<Comparable<?>, Object> EMPTY | |
| ranges | back to summary |
|---|---|
| private final transient ImmutableList<Range<K>> ranges | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| values | back to summary |
|---|---|
| private final transient ImmutableList<V> values | |
| ImmutableRangeMap | back to summary |
|---|---|
| pack-priv ImmutableRangeMap(ImmutableList<Range<K>> ranges, ImmutableList<V> values) | |
| asDescendingMapOfRanges | back to summary |
|---|---|
| public ImmutableMap Implements com. Doc from com. 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 ImmutableMap Implements com. Doc from com. Returns a view of this range map as an unmodifiable The returned It is guaranteed that no empty ranges will be in the returned
| |
| builder | back to summary |
|---|---|
| public static <K extends Comparable Returns a new builder for an immutable range map. | |
| clear | back to summary |
|---|---|
| public final void clear() Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| copyOf | back to summary |
|---|---|
public static <K extends Comparable
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements com. Doc from com. Returns
| |
| get | back to summary |
|---|---|
| public V get(K key) Implements com. Doc from com. 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. Implements com. Doc from com. 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() Overrides java. Implements com. Doc from com. Returns
| |
| merge | back to summary |
|---|---|
| public final void merge(Range<K> range, V value, BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction) Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| of | back to summary |
|---|---|
| public static <K extends Comparable Returns an empty immutable range map. Performance note: the instance returned is a singleton.
| |
| of | back to summary |
|---|---|
| public static <K extends Comparable Returns an immutable range map mapping a single range to a single value. | |
| put | back to summary |
|---|---|
| public final void put(Range<K> range, V value) Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| putAll | back to summary |
|---|---|
| public final void putAll(RangeMap<K, ? extends V> rangeMap) Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| putCoalescing | back to summary |
|---|---|
| public final void putCoalescing(Range<K> range, V value) Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| readObject | back to summary |
|---|---|
private void readObject(ObjectInputStream stream) throws InvalidObjectException
| |
| remove | back to summary |
|---|---|
| public final void remove(Range<K> range) Implements com. Deprecated Unsupported operation. Guaranteed to throw an exception and leave the
| |
| span | back to summary |
|---|---|
| public Range Implements com. Doc from com. Returns the minimal range enclosing the ranges in this
| |
| subRangeMap | back to summary |
|---|---|
| public ImmutableRangeMap Implements com. Doc from com. 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
| |
| toImmutableRangeMap | back to summary |
|---|---|
| public static <T extends @Nullable Object, K extends Comparable Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from com. Returns a readable string representation of this range map.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ImmutableRangeMap | |
| pack-priv ImmutableRangeMap. | |
| public ImmutableRangeMap. | |
| public ImmutableRangeMap. |
| entries | back to summary |
|---|---|
| private final List<Map. | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public ImmutableRangeMap Returns an
| |
| combine | back to summary |
|---|---|
pack-priv ImmutableRangeMap.
| |
| put | back to summary |
|---|---|
| public ImmutableRangeMap. Associates the specified range with the specified value.
| |
| putAll | back to summary |
|---|---|
| public ImmutableRangeMap. Copies all associations from the specified range map into this builder.
| |
asMapOfRanges() form.
| Modifier and Type | Field and Description |
|---|---|
| private final ImmutableMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| mapOfRanges | back to summary |
|---|---|
| private final ImmutableMap<Range<K>, V> mapOfRanges | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SerializedForm | back to summary |
|---|---|
| pack-priv SerializedForm(ImmutableMap<Range<K>, V> mapOfRanges) | |
| createRangeMap | back to summary |
|---|---|
| pack-priv Object createRangeMap() | |
| readResolve | back to summary |
|---|---|
| pack-priv Object readResolve() | |