Class CollectionUtils


  • public class CollectionUtils
    extends Object
    • Constructor Detail

      • CollectionUtils

        public CollectionUtils()
    • Method Detail

      • getStream

        public static <T> Stream<T> getStream​(Iterator<T> iter)
      • equals

        public static <T> boolean equals​(List<T> a,
                                         List<T> b)
      • unionDistinct

        public static <T> List<T> unionDistinct​(List<T> a,
                                                List<T> b)
      • unionAll

        public static <T> List<T> unionAll​(List<T> a,
                                           List<T> b)
      • except

        public static <T> List<T> except​(List<T> a,
                                         List<T> exceptions)
      • addAll

        public static <T> void addAll​(Collection<T> a,
                                      T[] b)
      • cardinality

        public static <T> int cardinality​(T a,
                                          List<T> b)