Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-78802

Allow chaining for classes that were designed for chaining

    Details

      Description

      Allow from static methods: Builder, Files, Optional, Stream

      return Optional.ofNullable(
       map.get("thing")
      ).filter(
       string -> !string.isEmpty()
      ).map(
       string -> string + "other thing"
      ).orElse(
       "default case"
      );
      

        Attachments

          Activity

            People

            • Assignee:
              peter.shin Peter Shin
              Reporter:
              peter.shin Peter Shin
              Recent user:
              Lester Pi
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Master