Package net.hydromatic.morel.util
Class Static
- java.lang.Object
-
- net.hydromatic.morel.util.Static
-
public class Static extends java.lang.Object
Utilities.
-
-
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()
Returns aCollector
that accumulates the input elements into a GuavaImmutableList
via aImmutableList.Builder
.
-
-
-
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()
Returns aCollector
that accumulates the input elements into a GuavaImmutableList
via aImmutableList.Builder
.It will be obsolete when we move to Guava 21.0, which has
ImmutableList.toImmutableList()
.- Type Parameters:
T
- Type of the input elements- Returns:
- a
Collector
that collects all the input elements into anImmutableList
, in encounter order
-
-