Package alluxio.util
Class StreamUtils
- java.lang.Object
-
- alluxio.util.StreamUtils
-
public final class StreamUtils extends java.lang.Object
Convenience methods for working with streams.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,R>
java.util.List<R>map(java.util.function.Function<T,R> f, java.util.Collection<T> collection)
-
-
-
Method Detail
-
map
public static <T,R> java.util.List<R> map(java.util.function.Function<T,R> f, java.util.Collection<T> collection)
- Type Parameters:
T
- the input typeR
- the output type- Parameters:
f
- the function to applycollection
- a collection to map over- Returns:
- a list containing the elements of the collection with the function applied
-
-