Class MergeUtil
- java.lang.Object
-
- org.jboss.jca.common.api.metadata.MergeUtil
-
public class MergeUtil extends Object
A static class with Merge Utilities methods.- Author:
- Stefano Maestri
-
-
Constructor Summary
Constructors Constructor Description MergeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<ConfigProperty>mergeConfigList(List<ConfigProperty> left, List<ConfigProperty> right)F Merge to List of ConfigProperty.static <T> List<T>mergeList(List<T> left, List<T> right)Merge to List.
-
-
-
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 mergeright- 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 mergeright- right side List to merge- Returns:
- merged List
-
-