Enhance Stream.ofNullable with a collection as input

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      ofNullable to have a collection as input. So a stream of elements are initialized instead of the collection.

      public static <T> Stream<T> ofNullable(Collection<T> collection) {
          return collection == null ? Stream.empty() : collection.stream();
        }


            Assignee:
            Viktor Klang
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: