com.ulisesbocchio.jasyptspringboot.util.Collections Maven / Gradle / Ivy
The newest version!
package com.ulisesbocchio.jasyptspringboot.util;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Collections class.
*
* @author Sergio.U.Bocchio
* @version $Id: $Id
*/
public class Collections {
/**
* concat.
*
* @param listOne a {@link java.util.List} object
* @param listTwo a {@link java.util.List} object
* @param a T class
* @return a {@link java.util.List} object
*/
public static List concat(List listOne, List listTwo) {
return Stream.concat(listOne.stream(), listTwo.stream())
.collect(Collectors.toList());
}
}