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 |
---|---|
ImmutableListMultimap<K,V> |
ImmutableListMultimap.Builder.build()
Returns a newly-created immutable list multimap.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.copyOf(Multimap<? extends K,? extends V> multimap)
Returns an immutable multimap containing the same mappings as
multimap . |
static <K,V,I extends Object & Iterable<V> & Iterator<V>> |
Multimaps.index(I values,
Function<? super V,K> keyFunction)
Deprecated.
use
Multimaps.index(Iterator, Function) by casting values to Iterator<V> , or better yet, by implementing only
Iterator and not Iterable . This method is scheduled
for deletion in March 2012. |
static <K,V> ImmutableListMultimap<K,V> |
Multimaps.index(Iterable<V> values,
Function<? super V,K> keyFunction)
Creates an index
ImmutableListMultimap that contains the results of
applying a specified function to each item in an Iterable of
values. |
static <K,V> ImmutableListMultimap<K,V> |
Multimaps.index(Iterator<V> values,
Function<? super V,K> keyFunction)
Creates an index
ImmutableListMultimap that contains the results of
applying a specified function to each item in an Iterator of
values. |
ImmutableListMultimap<V,K> |
ImmutableListMultimap.inverse()
Returns an immutable multimap which is the inverse of this one.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of()
Returns the empty multimap.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of(K k1,
V v1)
Returns an immutable multimap containing a single entry.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of(K k1,
V v1,
K k2,
V v2)
Returns an immutable multimap containing the given entries, in order.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Returns an immutable multimap containing the given entries, in order.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Returns an immutable multimap containing the given entries, in order.
|
static <K,V> ImmutableListMultimap<K,V> |
ImmutableListMultimap.of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5)
Returns an immutable multimap containing the given entries, in order.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> ListMultimap<K,V> |
Multimaps.unmodifiableListMultimap(ImmutableListMultimap<K,V> delegate)
Deprecated.
no need to use this
|
Copyright © 2010-2012. All Rights Reserved.