amaembo / streamex

Enhancing Java Stream API
Apache License 2.0
2.18k stars 249 forks source link

Issue 185 - add `EntryStream.withoutKeys()` and `EntryStream.withoutValues #233

Closed born-to-be-mad closed 3 years ago

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.04%) to 99.634% when pulling 64e94f37b30433ba6773be7f1578993136687744 on dma1979:issue/#185-withoutKeys-and-withoutValues into 631cd5ac13a7d9e85d44ecb39d321a4f2687b3f5 on amaembo:master.

amaembo commented 3 years ago

The idea of withoutKeys() and withoutValues() requested in #185 is filtering, not mapping. It's removing entries that have a specified key or value. See StreamEx#without. Your withoutKeys() method is analogous to existing values() method and withoutValues() is analogous to existing keys() method, so this is completely redundant. Unfortunately, I have to decline this pull-request. If you like, you can implement the actually desired feature as a separate pull-request.