Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
ImmutableRangeMap<K,V> |
ImmutableRangeMap.Builder.build()
Returns an
ImmutableRangeMap containing the associations previously added to this
builder. |
static <K extends Comparable<?>,V> |
ImmutableRangeMap.copyOf(RangeMap<K,? extends V> rangeMap) |
static <K extends Comparable<?>,V> |
ImmutableRangeMap.of()
Returns an empty immutable range map.
|
static <K extends Comparable<?>,V> |
ImmutableRangeMap.of(Range<K> range,
V value)
Returns an immutable range map mapping a single range to a single value.
|
ImmutableRangeMap<K,V> |
ImmutableRangeMap.subRangeMap(Range<K> range) |
Modifier and Type | Method and Description |
---|---|
static <T,K extends Comparable<? super K>,V> |
ImmutableRangeMap.toImmutableRangeMap(Function<? super T,Range<K>> keyFunction,
Function<? super T,? extends V> valueFunction)
Returns a
Collector that accumulates the input elements into a new ImmutableRangeMap . |
Copyright © 2010–2018. All rights reserved.