public static class ImmutableRangeSet.Builder<C extends Comparable<?>> extends Object
| Constructor and Description | 
|---|
| ImmutableRangeSet.Builder() | 
| Modifier and Type | Method and Description | 
|---|---|
| ImmutableRangeSet.Builder<C> | add(Range<C> range)Add the specified range to this builder. | 
| ImmutableRangeSet.Builder<C> | addAll(RangeSet<C> ranges)Add all ranges from the specified range set to this builder. | 
| ImmutableRangeSet<C> | build()Returns an  ImmutableRangeSetcontaining the ranges added to this builder. | 
public ImmutableRangeSet.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 builderpublic ImmutableRangeSet.Builder<C> addAll(RangeSet<C> ranges)
public ImmutableRangeSet<C> build()
ImmutableRangeSet containing the ranges added to this builder.Copyright © 2010-2015. All Rights Reserved.