Package com.compomics.util
Class StreamUtil
java.lang.Object
com.compomics.util.StreamUtil
Convenience methods to work with lambdas.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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
-