Class Collectors3


  • public class Collectors3
    extends java.lang.Object
    Some extra Collector implementations. Named Collectors3 just in case Guava ever makes a Collectors2
    • Constructor Summary

      Constructors 
      Constructor Description
      Collectors3()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.stream.Collector<T,​?,​java.util.List<T>> toImmutableList()  
      static <T> java.util.stream.Collector<T,​?,​java.util.Set<T>> toImmutableSet()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Collectors3

        public Collectors3()
    • Method Detail

      • toImmutableList

        public static <T> java.util.stream.Collector<T,​?,​java.util.List<T>> toImmutableList()
      • toImmutableSet

        public static <T> java.util.stream.Collector<T,​?,​java.util.Set<T>> toImmutableSet()