Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-706

Add SetUtils.unmodifiableSet(T... items) method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3
    • None
    • None

    Description

      Add an equivalent to the Arrays.asList() method for conveniently creating sets. A trivial implementation would be:

      SetUtils.asSet(T... items) -> return Collections.unmodifiableSet(new HashSet<>(asList(items));

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: