Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16797

Allow creation of immutable collections through CollectionFactory

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.x Backlog
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Modelling application classes as immutable objects is a widely used pattern in Java and Kotlin which constantly gains adoption. We should allow creation of immutable collection types (Map, List, Set) through CollectionFactory or an adequate API that allows specification of the target type and the elements the result should contain.

      It would be great to support:

      • Java 9 immutable collections
      • Google Guava collections
      • Vavr Collections (previously JavaSlang)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                mp911de Mark Paluch
                Last updater:
                Spring Issuemaster
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  47 weeks, 2 days ago