Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-940

Support for Javaslang collection types as query method return values

    Details

    • Sprint:
      Ingalls RC1

      Description

      Since Javaslang Option support was added in DATACMNS-937, would it also be possible to add support for Javaslang collections types as return values of query methods?

        Issue Links

          Activity

          roadrunn Darek Kaczynski created issue -
          Hide
          olivergierke Oliver Gierke added a comment - - edited

          Is there a canonical place to read up on how to convert between native Java Collection types and Javaslang ones? What I am basically looking for is a description for all the convertible pairs of types from JDK collections to Javaslang ones.

          The documentation is remarkably silent on this topic and only show very rudimental usage (e.g. List.of(1, 2)). The JavaDoc for List lists ofAll(…) but that method doesn't seem to be available for Set, Map etc.

          Show
          olivergierke Oliver Gierke added a comment - - edited Is there a canonical place to read up on how to convert between native Java Collection types and Javaslang ones? What I am basically looking for is a description for all the convertible pairs of types from JDK collections to Javaslang ones. The documentation is remarkably silent on this topic and only show very rudimental usage (e.g. List.of(1, 2) ). The JavaDoc for List lists ofAll(…) but that method doesn't seem to be available for Set , Map etc.
          olivergierke Oliver Gierke made changes -
          Field Original Value New Value
          Status Open [ 1 ] Waiting for Feedback [ 10002 ]
          roadrunn Darek Kaczynski made changes -
          Comment [ For {{Set}} and {{Map}} method {{ofAll(..)}} is defined on specific implementations of that interface, i.e. {{HashSet}} and {{HashMap}}. ]
          roadrunn Darek Kaczynski made changes -
          Comment [ Also {{javaslang.Value}} seems to have a lot of conversion methods from JavaSlang to JDK types. It also seems to be implemented by all main collection interfaces ({{Set}}, {{List}}, {{Map}}). ]
          roadrunn Darek Kaczynski made changes -
          Comment [ [This paragraph|http://www.javaslang.io/javaslang-docs/#_collections] states all Javaslang collections are based on {{java.lang.Iterable}} and the source confirms. This seems like a good starting point to me. ]
          Hide
          roadrunn Darek Kaczynski added a comment -

          This paragraph states all Javaslang collections are based on java.lang.Iterable and the source confirms. This seems like a good starting point to me.

          Also javaslang.Value seems to have a lot of conversion methods from JavaSlang to JDK types. It also seems to be implemented by all main collection interfaces (Set, List, Map).

          For Set and Map method ofAll(..) is defined on specific implementations of that interface, i.e. HashSet and HashMap.

          Show
          roadrunn Darek Kaczynski added a comment - This paragraph states all Javaslang collections are based on java.lang.Iterable and the source confirms. This seems like a good starting point to me. Also javaslang.Value seems to have a lot of conversion methods from JavaSlang to JDK types. It also seems to be implemented by all main collection interfaces ( Set , List , Map ). For Set and Map method ofAll(..) is defined on specific implementations of that interface, i.e. HashSet and HashMap .
          roadrunn Darek Kaczynski made changes -
          Status Waiting for Feedback [ 10002 ] Investigating [ 10003 ]
          olivergierke Oliver Gierke made changes -
          Remote Link This issue links to "Blog post on interoperability between Java and Javaslang collections (Web Link)" [ 11217 ]
          olivergierke Oliver Gierke made changes -
          Remote Link This issue links to "Blog post on interoperability between Java and Javaslang collections (Web Link)" [ 11217 ]
          olivergierke Oliver Gierke made changes -
          Remote Link This issue links to "Blog post on the interoperability between Java and Javaslang (Web Link)" [ 11218 ]
          olivergierke Oliver Gierke made changes -
          Labels ingalls
          olivergierke Oliver Gierke made changes -
          Sprint Ingalls RC1 [ 115 ]
          olivergierke Oliver Gierke made changes -
          Status Investigating [ 10003 ] In Progress [ 3 ]
          Hide
          olivergierke Oliver Gierke added a comment -

          This should be in place. Feel free to give the snapshots a try.

          Show
          olivergierke Oliver Gierke added a comment - This should be in place. Feel free to give the snapshots a try.
          olivergierke Oliver Gierke made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 1.13 RC1 (Ingalls) [ 15699 ]
          Fix Version/s 2.0 M2 (Kay) [ 15812 ]
          Resolution Fixed [ 1 ]
          olivergierke Oliver Gierke made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Waiting for Feedback Waiting for Feedback
          1h 3m 1 Oliver Gierke 21/Nov/16 12:04 PM
          Waiting for Feedback Waiting for Feedback Investigating Investigating
          42m 56s 1 Darek Kaczynski 21/Nov/16 12:47 PM
          Investigating Investigating In Progress In Progress
          21d 5h 50m 1 Oliver Gierke 12/Dec/16 6:37 PM
          In Progress In Progress Resolved Resolved
          33m 4s 1 Oliver Gierke 12/Dec/16 7:10 PM
          Resolved Resolved Closed Closed
          9d 3h 30m 1 Oliver Gierke 21/Dec/16 10:41 PM

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              roadrunn Darek Kaczynski
              Last updater:
              Oliver Gierke
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile