Commons Collections
  1. Commons Collections
  2. COLLECTIONS-422

Proposal for a permutation generator (Permutator)

    Details

      Description

      Here's a patch providing a tool to get every permutation of a collection.

      1. permutator.txt
        19 kB
        Benoit Corne

        Activity

        Benoit Corne created issue -
        Hide
        Benoit Corne added a comment -

        Here's the patch containing the code, I hope the format is good.

        Show
        Benoit Corne added a comment - Here's the patch containing the code, I hope the format is good.
        Benoit Corne made changes -
        Field Original Value New Value
        Attachment permutator.txt [ 12536234 ]
        Thomas Neidhart made changes -
        Fix Version/s 4.0 [ 12314511 ]
        Fix Version/s 4.x [ 12313073 ]
        Hide
        Thomas Neidhart added a comment -

        Applied patch with modifications in r1470310:

        • Instead of the Permutator interface, I implemented an PermutationIterator
        • Added a CollectionUtils.permutations(Collection) method
        • some simplifications and additional javadoc

        Thanks for the report and patch!

        Show
        Thomas Neidhart added a comment - Applied patch with modifications in r1470310: Instead of the Permutator interface, I implemented an PermutationIterator Added a CollectionUtils.permutations(Collection) method some simplifications and additional javadoc Thanks for the report and patch!
        Thomas Neidhart made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Thomas Neidhart made changes -
        Fix Version/s 4.0-alpha1 [ 12324645 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Benoit Corne
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development