google / mug

A small Java 8 library (string manipulation, stream utils)
Apache License 2.0
367 stars 65 forks source link

Adding filter and skipIf methods with an entry predicate for BiStream class #75

Open d-william opened 2 weeks ago

d-william commented 2 weeks ago

Similar to methods filter and skipIf with bi predicate

google-cla[bot] commented 2 weeks ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

fluentfuture commented 3 days ago

If you have a BiStream and would like to treat it as a Stream<Entry>, consider to call .mapToObj(Map::entry) ?

The main motivation behind BiStream is that you don't have to deal with entries.

Or can you clarify the use case where existing filter() aren't sufficient?