Class ListUtils


  • public class ListUtils
    extends Object
    Common list utilities
    • Constructor Detail

      • ListUtils

        public ListUtils()
    • Method Detail

      • mergeLists

        public static List<String> mergeLists​(List<String> list1,
                                              List<String> list2)
        Merges the 2 lists and returns a new list without repetitions
        Parameters:
        list1 - First list to merge
        list2 - Second list to merge
        Returns:
        a new list which contains all elements in both lists without repetitions