src/edu/kit/informatik/Utilities.java
/**
     * Concatenates multiple generic collections into one list.
     * @param <T> the type of the elements in the given collections
     * @param collections a collection of element collections
     * @return the collection resulting from the unification of the given collections, with possible repeated elements
     */
Concatenates multiple generic collections into one list.
@param  the type of the elements in the given collections
@param collections a collection of element collections
@return the collection resulting from the unification of the given collections, with possible repeated elements
Concatenates multiple generic collections into one list . @param the type of the elements in the given collections @param collections a collection of element collections @return the collection resulting from the unification of the given collections with possible repeated elements
@SafeVarargs
    public static <T> Collection<T> unify(
            Collection<T>... collections) {
        return Arrays.stream(collections)
                .flatMap(Collection::stream)
                .collect(Collectors.toList()); 
    }
@ SafeVarargs public static < T > Collection < T > unify ( Collection < T > ... collections ) { return Arrays . stream ( collections ) . flatMap ( Collection :: stream ) . collect ( Collectors . toList ( ) ) ; }
Concatenates multiple generic collections into one list.
Concatenates multiple generic collections into one list .