Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251338

Looking for Optional.ifPresentOrElseThrow() method.

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Generic

      A DESCRIPTION OF THE PROBLEM :
      We have Optional.ifPresentOrElse feature is available.
      If i want to throw some exception if the element is not present then i need to use curly braces.

      To avoid curly braces. I am looking for ifPresentOrElseThrow method in the optional class.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: