public final class MoreStreams
extends java.lang.Object
This is useful when the Android flavor of Guava somehow finds its way onto the processor classpath.
| Modifier and Type | Method and Description |
|---|---|
static <T,K,V> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableBiMap<K,V>> |
toImmutableBiMap(java.util.function.Function<? super T,K> keyMapper,
java.util.function.Function<? super T,V> valueMapper)
Returns a collector for an
ImmutableBiMap. |
static <T> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableList<T>> |
toImmutableList()
Returns a collector for an
ImmutableList. |
static <T,K,V> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableMap<K,V>> |
toImmutableMap(java.util.function.Function<? super T,K> keyMapper,
java.util.function.Function<? super T,V> valueMapper)
Returns a collector for an
ImmutableMap. |
static <T> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableSet<T>> |
toImmutableSet()
Returns a collector for an
ImmutableSet. |
public static <T> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableList<T>> toImmutableList()
ImmutableList.public static <T> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
ImmutableSet.public static <T,K,V> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableMap<K,V>> toImmutableMap(java.util.function.Function<? super T,K> keyMapper,
java.util.function.Function<? super T,V> valueMapper)
ImmutableMap.public static <T,K,V> java.util.stream.Collector<T,?,com.google.common.collect.ImmutableBiMap<K,V>> toImmutableBiMap(java.util.function.Function<? super T,K> keyMapper,
java.util.function.Function<? super T,V> valueMapper)
ImmutableBiMap.Copyright © 2021 Google LLC. All Rights Reserved.