XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • 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);

            henryjen Henry Jen
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: