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

Implement castToXXX in Functions class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.9
    • 3.10
    • lang.*

    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

            jochen@apache.org Jochen Wiedmann
            peter@verhas.com Peter Verhas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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