my2iu / Jinq

LINQ-style queries for Java 8
Other
659 stars 71 forks source link

notComplement() #79

Open beniamindziurdza opened 5 years ago

beniamindziurdza commented 5 years ago

Please, I provided some basic impl. of negation.

One improvement is still possible - dealing with negation in wrapper if translation fails.

beniamindziurdza commented 5 years ago

I've added support for difference of sets (emulated by "and not"). It can be a good choice/workaround when notComplement is not sufficient (i.e for collection based streams)