-
Type:
Enhancement
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: core-libs
A DESCRIPTION OF THE PROBLEM :
ofNullable to have a collection as input. So a stream of elements are initialized instead of the collection.
public static <T> Stream<T> ofNullable(Collection<T> collection) {
return collection == null ? Stream.empty() : collection.stream();
}
ofNullable to have a collection as input. So a stream of elements are initialized instead of the collection.
public static <T> Stream<T> ofNullable(Collection<T> collection) {
return collection == null ? Stream.empty() : collection.stream();
}