Package org.onlab.util
Class GuavaCollectors
- java.lang.Object
-
- org.onlab.util.GuavaCollectors
-
public final class GuavaCollectors extends java.lang.Object
Implementations ofCollector
that implement various useful reduction operations, such as accumulating elements into Guava collections.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated 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()
Deprecated.in 1.11.0 consider usingImmutableList.toImmutableList()
instead.static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>>
toImmutableSet()
Deprecated.in 1.11.0 consider usingImmutableSet.toImmutableSet()
instead.
-
-
-
Method Detail
-
toImmutableSet
@Deprecated public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
Deprecated.in 1.11.0 consider usingImmutableSet.toImmutableSet()
instead.Returns aCollector
that accumulates the input elements into a new ImmutableSet.- Type Parameters:
T
- type- Returns:
- a
Collector
which collects all the input elements into aImmutableSet
-
toImmutableList
@Deprecated public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toImmutableList()
Deprecated.in 1.11.0 consider usingImmutableList.toImmutableList()
instead.Returns aCollector
that accumulates the input elements into a new ImmutableList.- Type Parameters:
T
- type- Returns:
- a
Collector
which collects all the input elements into aImmutableList
, in encounter order
-
-