Found annoying to figure out each time which method to use. I'm not very good at rememebering all Java functional interfaces.
Proposal:
Give all Sneaky class methods same name (unchecked for example) thus overloading them.
Instead of writing
myStream.forEach(Sneaky.consumer(lambda));
it would look like
myStream.forEach(unchecked(lambda));
Notice static import now is more sensible.
Also it helps with refactoring when lambda signature changes.
Found annoying to figure out each time which method to use. I'm not very good at rememebering all Java functional interfaces.
Proposal:
Give all
Sneakyclass methods same name (uncheckedfor example) thus overloading them.Instead of writing
it would look like
Notice static import now is more sensible.
Also it helps with refactoring when lambda signature changes.