You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Peter Verhas (Jira)" <ji...@apache.org> on 2019/08/20 13:36:00 UTC

[jira] [Closed] (LANG-1477) Implement castToXXX in Functions class

     [ https://issues.apache.org/jira/browse/LANG-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Verhas closed LANG-1477.
------------------------------
    Resolution: Fixed

> Implement castToXXX in Functions class
> --------------------------------------
>
>                 Key: LANG-1477
>                 URL: https://issues.apache.org/jira/browse/LANG-1477
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.9
>            Reporter: Peter Verhas
>            Priority: Minor
>              Labels: newbie
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Proposal to implement functional interface conversion functions in the class {{org.apache.commons.lang3.Functions}} that convert {{FailableXXX}} to {{XXX}}.
> For example, the FailableRunnable can be converted with the method:
>  
> {code:java}
> static <K extends Throwable> Runnable castToRunnable(FailableRunnable<K> s) {
>    return () -> run(s);
> }{code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)