Package com.compomics.util
Class StreamUtil
java.lang.Object
com.compomics.util.StreamUtil
public class StreamUtil extends Object
Convenience methods to work with lambdas.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description StreamUtil()
-
Method Summary
Modifier and Type Method Description static <T> java.util.stream.Stream<T>
concatenate(Collection<T>... collections)
Returns a concatenation of the streams of the given collections.
-
Constructor Details
-
StreamUtil
public StreamUtil()
-
-
Method Details
-
concatenate
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
-