Class Collectors
- java.lang.Object
-
- jetbrains.buildServer.util.stream.Collectors
-
public final class Collectors extends Object
Implementations of
Collectorthat implement various useful reduction operations.- Since:
- 2017.2
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
- See Also:
Collectors
-
-
Method Detail
-
toUnmodifiableList
@NotNull public static <T> Collector<T,List<T>,List<T>> toUnmodifiableList()
Returns a
Collectorthat accumulates the input elements into a new unmodifiableList. There are no guarantees on the type, serializability, or thread-safety of theListreturned; if more control over the returnedListis required, useCollectors.toCollection(Supplier).- Type Parameters:
T- the type of the input elements.- Returns:
- a
Collectorwhich collects all the input elements into an unmodifiableList, in encounter order. - See Also:
Collectors.toList(),Collections.unmodifiableList(List)
-
-