|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.common.collect.ImmutableRangeMap.Builder<K,V>
public static final class ImmutableRangeMap.Builder<K extends java.lang.Comparable<?>,V>
A builder for immutable range maps. Overlapping ranges are prohibited.
Constructor Summary | |
---|---|
ImmutableRangeMap.Builder()
|
Method Summary | |
---|---|
ImmutableRangeMap<K,V> |
build()
Returns an ImmutableRangeMap containing the associations previously added to this
builder. |
ImmutableRangeMap.Builder<K,V> |
put(Range<K> range,
V value)
Associates the specified range with the specified value. |
ImmutableRangeMap.Builder<K,V> |
putAll(RangeMap<K,? extends V> rangeMap)
Copies all associations from the specified range map into this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImmutableRangeMap.Builder()
Method Detail |
---|
public ImmutableRangeMap.Builder<K,V> put(Range<K> range, V value)
java.lang.IllegalArgumentException
- if range
overlaps with any other ranges inserted
into this builder, or if range
is emptypublic ImmutableRangeMap.Builder<K,V> putAll(RangeMap<K,? extends V> rangeMap)
java.lang.IllegalArgumentException
- if any of the ranges in rangeMap
overlap with ranges
already in this builderpublic ImmutableRangeMap<K,V> build()
ImmutableRangeMap
containing the associations previously added to this
builder.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |