public static class ImmutableRangeSet.Builder<C extends Comparable<?>> extends Object
| Constructor and Description |
|---|
Builder()
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableRangeSet |
add(Range
Add the specified range to this builder.
|
ImmutableRangeSet |
addAll(RangeSet
Add all ranges from the specified range set to this builder.
|
ImmutableRangeSet |
build()
Returns an
ImmutableRangeSet containing the ranges added to this builder.
|
public ImmutableRangeSet.Builder <C> add(Range <C> range)
IllegalArgumentException - if
range is empty or has nonempty intersection with any ranges already added to the builder
public ImmutableRangeSet.Builder <C> addAll(RangeSet <C> ranges)
public ImmutableRangeSet<C> build()
ImmutableRangeSet containing the ranges added to this builder.