This commit is contained in:
huangchengxing
2022-09-06 12:21:41 +08:00
parent 741f0aa53a
commit 717305e039
7 changed files with 139 additions and 126 deletions

View File

@@ -181,7 +181,7 @@ public class EasyStreamTest {
Assert.assertEquals(collect2, distinctBy2);
Assert.assertEquals(
4, EasyStream.of(1, 2, 2, null, 3, null).parallel(true).distinct(t -> Objects.isNull(t) ? null : t.toString()).count()
4, EasyStream.of(1, 2, 2, null, 3, null).parallel(true).distinct(t -> Objects.isNull(t) ? null : t.toString()).sequential().count()
);
}