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