2023-04-16
This commit is contained in:
@@ -19,8 +19,11 @@ public class Sample {
|
||||
}
|
||||
|
||||
|
||||
public Stream<String> toStream(List<String> list) {
|
||||
return null == list ? Stream.empty() : list.stream();
|
||||
/*
|
||||
list to stream
|
||||
*/
|
||||
public Stream<String> toStream(final List<String> list) {
|
||||
return (null == list || list.isEmpty()) ? Stream.empty() : list.stream();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user