Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1477

Implement castToXXX in Functions class

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.10
    • Component/s: lang.*
    • Labels:

      Description

      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:

       

      static <K extends Throwable> Runnable castToRunnable(FailableRunnable<K> s) {
         return () -> run(s);
      }

       

       

        Attachments

          Activity

            People

            • Assignee:
              jochen@apache.org Jochen Wiedmann
              Reporter:
              peter@verhas.com Peter Verhas

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment