Package com.android.utils
Class ImmutableCollectors
- java.lang.Object
-
- com.android.utils.ImmutableCollectors
-
public class ImmutableCollectors extends java.lang.ObjectUtil for creatingCollectorthat creates immutable collections, similar toCollectors.
-
-
Constructor Summary
Constructors Constructor Description ImmutableCollectors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>>toImmutableList()static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>>toImmutableSet()
-
-
-
Method Detail
-
toImmutableList
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toImmutableList()
-
toImmutableSet
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
-
-