2023-04-16

This commit is contained in:
2023-04-16 14:11:23 +09:00
parent 28cddcb77b
commit e41240ccb2
6 changed files with 96 additions and 3 deletions

View File

@@ -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();
}