Description
For example
Collections.singleton(foo).parallelStream().forEach(c -> { c.bar(); });
or
Collections.singleton(foo).stream().forEach(c -> { c.bar(); });
should typically be equivalent to
foo.bar();
which is more concise.
For example
Collections.singleton(foo).parallelStream().forEach(c -> { c.bar(); });
or
Collections.singleton(foo).stream().forEach(c -> { c.bar(); });
should typically be equivalent to
foo.bar();
which is more concise.