Class MergeUtil


  • public class MergeUtil
    extends Object
    A static class with Merge Utilities methods.
    Author:
    Stefano Maestri
    • Constructor Detail

      • MergeUtil

        public MergeUtil()
    • Method Detail

      • mergeList

        public static <T> List<T> mergeList​(List<T> left,
                                            List<T> right)
        Merge to List. The results is the union of the two arrays. Element present in left and right List (letft.equals(right) = true) are present only one and left ones are selected
        Type Parameters:
        T - the type of List elements
        Parameters:
        left - left side List to merge
        right - right side List to merge
        Returns:
        merged List
      • mergeConfigList

        public static List<ConfigProperty> mergeConfigList​(List<ConfigProperty> left,
                                                           List<ConfigProperty> right)
        F Merge to List of ConfigProperty. The results is the union of the two arrays. Element present in left and right List (letft.equals(right) = true) are present only one and left ones are selected
        Parameters:
        left - left side List to merge
        right - right side List to merge
        Returns:
        merged List