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

(opt) add methods to convert to and from primitive Optional classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs

      It's fairly difficult to convert between Optional<Integer> and OptionalInt and vice-versa. This also applies to the Long and Double specializations. The workaround is to use streams, but this is quite roundabout.

            smarks Stuart Marks
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: