Package com.google.common.collect
Class ImmutableRangeSet.Builder<C extends java.lang.Comparable<?>>
- java.lang.Object
-
- com.google.common.collect.ImmutableRangeSet.Builder<C>
-
- Enclosing class:
- ImmutableRangeSet<C extends java.lang.Comparable>
@Deprecated(since="2022-12-01") public static class ImmutableRangeSet.Builder<C extends java.lang.Comparable<?>> 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 sets.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutableRangeSet.Builder<C>
add(Range<C> range)
Deprecated.Add the specified range to this builder.ImmutableRangeSet.Builder<C>
addAll(RangeSet<C> ranges)
Deprecated.Add all ranges from the specified range set to this builder.ImmutableRangeSet<C>
build()
Deprecated.Returns anImmutableRangeSet
containing the ranges added to this builder.
-
-
-
Method Detail
-
add
public ImmutableRangeSet.Builder<C> add(Range<C> range)
Deprecated.Add the specified range to this builder. Adjacent/abutting ranges are permitted, but empty ranges, or ranges with nonempty overlap, are forbidden.- Throws:
java.lang.IllegalArgumentException
- ifrange
is empty or has nonempty intersection with any ranges already added to the builder
-
addAll
public ImmutableRangeSet.Builder<C> addAll(RangeSet<C> ranges)
Deprecated.Add all ranges from the specified range set to this builder. Duplicate or connected ranges are permitted, and will be merged in the resulting immutable range set.
-
build
public ImmutableRangeSet<C> build()
Deprecated.Returns anImmutableRangeSet
containing the ranges added to this builder.
-
-