|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.common.collect.ImmutableRangeSet.Builder<C>
public static class ImmutableRangeSet.Builder<C extends java.lang.Comparable<?>>
A builder for immutable range sets.
| Constructor Summary | |
|---|---|
ImmutableRangeSet.Builder()
|
|
| Method Summary | |
|---|---|
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 ImmutableRangeSet containing the ranges added to this builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableRangeSet.Builder()
| Method Detail |
|---|
public ImmutableRangeSet.Builder<C> add(Range<C> range)
java.lang.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||