Top Description Constructors Methods
com.google.auto.common

public final Class MoreStreams

extends Object
Class Inheritance
Static Imports
java.util.stream.Collectors.collectingAndThen, .Collectors.toList

A utility class that provides Android compatible alternatives to Guava's streaming APIs.

This is useful when the Android flavor of Guava somehow finds its way onto the processor classpath.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T, K, V> Collector<T, ?, ImmutableBiMap<K, V>>
toImmutableBiMap(Function<? super T, K> keyMapper, Function<? super T, V> valueMapper)

Returns a collector for an ImmutableBiMap.

public static <T> Collector<T, ?, ImmutableList<T>>
toImmutableList()

Returns a collector for an ImmutableList.

public static <T, K, V> Collector<T, ?, ImmutableMap<K, V>>
toImmutableMap(Function<? super T, K> keyMapper, Function<? super T, V> valueMapper)

Returns a collector for an ImmutableMap.

public static <T> Collector<T, ?, ImmutableSet<T>>
toImmutableSet()

Returns a collector for an ImmutableSet.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MoreStreamsback to summary
private MoreStreams()

Method Detail

toImmutableBiMapback to summary
public static <T, K, V> Collector<T, ?, ImmutableBiMap<K, V>> toImmutableBiMap(Function<? super T, K> keyMapper, Function<? super T, V> valueMapper)

Returns a collector for an ImmutableBiMap.

toImmutableListback to summary
public static <T> Collector<T, ?, ImmutableList<T>> toImmutableList()

Returns a collector for an ImmutableList.

toImmutableMapback to summary
public static <T, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(Function<? super T, K> keyMapper, Function<? super T, V> valueMapper)

Returns a collector for an ImmutableMap.

toImmutableSetback to summary
public static <T> Collector<T, ?, ImmutableSet<T>> toImmutableSet()

Returns a collector for an ImmutableSet.