XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: core-libs

      Add the following methods to Optional:

        Optional<T> filter(Predicate<? super T>)
        <U> Optional<U> map(Function<? super T, ? extends U>)
        <U> Optional<U> flatMap(Function<? super T, ? extends Optional<U>>)
        static<T> Optional<T> ofNullable(T t);

            Assignee:
            Henry Jen
            Reporter:
            Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: