mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
!764 EasyStream相关:完善了注释,为部分工厂方法添加空值处理,并补充一个新方法
Merge pull request !764 from Createsequence/v6-dev
This commit is contained in:
@@ -427,4 +427,13 @@ public class EasyStreamTest {
|
||||
Assert.assertTrue(EasyStream.of(1).isNotEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransform() {
|
||||
boolean result = EasyStream.of(1, 2, 3)
|
||||
.transform(EasyStream::toList)
|
||||
.map(List::isEmpty)
|
||||
.orElse(false);
|
||||
Assert.assertFalse(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user