In that case you might want to also look at some other choices people have made like
https://github.com/google/mug#maybe
or even more specialized facilities like
https://github.com/google/chkstream
I'm not against plain general functional types that handle checked exceptions (I imagine most of us have written them for ourselves at some point, which makes them a good candidate for Commons), but I've found that generally I end up with clearer code if I can use an idiom more specific to the task.
ajs6f
Post by Aleksander ÅciborekOf course you are right. I'm going to add new functions. The idea behind
this pull request is to show what I want to create, that's why I marked PR
as WIP (Work in Progress)
Post by ajs6fI would rather see a more complete offering with the other types in
j.u.function, i.e. Consumer, Supplier, Predicate, the various
primitive-specialized types...
ajs6f
Post by Pascal SchumacherHi Aleksander,
thanks.
Imho this would be a useful addition to commons-lang.
Any other opinions?
Cheers,
Pascal
Post by Aleksander ÅciborekHi
I've just created pull request
<https://github.com/apache/commons-lang/pull/385> for CheeckedFunction
interface. This is an example of utils I would like to add in order to
simplify usage of java Stream.
Aleksander
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@commons.apache.org
For additional commands, e-mail: dev-***@commons.apache.org