Class StreamUtil

java.lang.Object
com.compomics.util.StreamUtil

public class StreamUtil
extends Object
Convenience methods to work with lambdas.
Author:
Marc Vaudel
  • Constructor Details

  • Method Details

    • concatenate

      public static <T> java.util.stream.Stream<T> concatenate​(Collection<T>... collections)
      Returns a concatenation of the streams of the given collections. If a collection is null it is ignored. Returns null if all collections are null.
      Type Parameters:
      T - the collections
      Parameters:
      collections - the collections
      Returns:
      the concatenated stream