Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Field and Description |
---|---|
(package private) Maps.EntryTransformer<? super K,? super V1,V2> |
Maps.TransformedEntriesMap.transformer |
(package private) Maps.EntryTransformer<? super K,? super V1,V2> |
Multimaps.TransformedEntriesMultimap.transformer |
Modifier and Type | Method and Description |
---|---|
(package private) static <K,V1,V2> Maps.EntryTransformer<K,V1,V2> |
Maps.asEntryTransformer(Function<? super V1,V2> function)
Views a function as an entry transformer that ignores the entry key.
|
Modifier and Type | Method and Description |
---|---|
(package private) static <K,V1,V2> Function<java.util.Map.Entry<K,V1>,java.util.Map.Entry<K,V2>> |
Maps.asEntryToEntryFunction(Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Views an entry transformer as a function from entries to entries.
|
(package private) static <K,V1,V2> Function<java.util.Map.Entry<K,V1>,V2> |
Maps.asEntryToValueFunction(Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Views an entry transformer as a function from
Entry to values. |
(package private) static <K,V1,V2> Function<V1,V2> |
Maps.asValueToValueFunction(Maps.EntryTransformer<? super K,V1,V2> transformer,
K key) |
static <K,V1,V2> ListMultimap<K,V2> |
Multimaps.transformEntries(ListMultimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a
ListMultimap whose values are derived from the
original multimap's entries. |
static <K,V1,V2> java.util.Map<K,V2> |
Maps.transformEntries(java.util.Map<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a map whose values are derived from the original map's
entries.
|
static <K,V1,V2> Multimap<K,V2> |
Multimaps.transformEntries(Multimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a multimap whose values are derived from the original
multimap's entries.
|
static <K,V1,V2> java.util.NavigableMap<K,V2> |
Maps.transformEntries(java.util.NavigableMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a navigable map whose values are derived from the
original navigable map's entries.
|
static <K,V1,V2> java.util.SortedMap<K,V2> |
Maps.transformEntries(java.util.SortedMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a sorted map whose values are derived from the original
sorted map's entries.
|
(package private) static <V2,K,V1> java.util.Map.Entry<K,V2> |
Maps.transformEntry(Maps.EntryTransformer<? super K,? super V1,V2> transformer,
java.util.Map.Entry<K,V1> entry)
Returns a view of an entry transformed by the specified transformer.
|
Constructor and Description |
---|
TransformedEntriesListMultimap(ListMultimap<K,V1> fromMultimap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |
TransformedEntriesMap(java.util.Map<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |
TransformedEntriesMultimap(Multimap<K,V1> fromMultimap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |
TransformedEntriesNavigableMap(java.util.NavigableMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |
TransformedEntriesSortedMap(java.util.SortedMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |