Package com.google.common.collect
Class ImmutableRangeMap.Builder<K extends java.lang.Comparable<?>,V>
- java.lang.Object
-
- com.google.common.collect.ImmutableRangeMap.Builder<K,V>
-
- Enclosing class:
- ImmutableRangeMap<K extends java.lang.Comparable<?>,V>
@Deprecated(since="2022-12-01") public static final class ImmutableRangeMap.Builder<K extends java.lang.Comparable<?>,V> extends java.lang.Object
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A builder for immutable range maps. Overlapping ranges are prohibited.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutableRangeMap<K,V>
build()
Deprecated.Returns anImmutableRangeMap
containing the associations previously added to this builder.ImmutableRangeMap.Builder<K,V>
put(Range<K> range, V value)
Deprecated.Associates the specified range with the specified value.ImmutableRangeMap.Builder<K,V>
putAll(RangeMap<K,? extends V> rangeMap)
Deprecated.Copies all associations from the specified range map into this builder.
-
-
-
Method Detail
-
put
public ImmutableRangeMap.Builder<K,V> put(Range<K> range, V value)
Deprecated.Associates the specified range with the specified value.- Throws:
java.lang.IllegalArgumentException
- ifrange
overlaps with any other ranges inserted into this builder, or ifrange
is empty
-
putAll
public ImmutableRangeMap.Builder<K,V> putAll(RangeMap<K,? extends V> rangeMap)
Deprecated.Copies all associations from the specified range map into this builder.- Throws:
java.lang.IllegalArgumentException
- if any of the ranges inrangeMap
overlap with ranges already in this builder
-
build
public ImmutableRangeMap<K,V> build()
Deprecated.Returns anImmutableRangeMap
containing the associations previously added to this builder.
-
-