Interface Permutations<T>

    • Method Detail

      • of

        static <T> Stream<List<T>> of​(Predicate<List<T>> predicate,
                                      Collection<T> collection)
        Method to get the Stream of permutations.
        Type Parameters:
        T - The Collection element type.
        Parameters:
        predicate - The optional Predicate (may be null) specifying prerequisite requirement(s) for the combinations. Any path that does not match will be pruned.
        collection - The Collection of elements to permute.
        Returns:
        The Stream of permutations.