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

          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.
          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 .
          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.

            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