org.jboss.jca.common.api.metadata
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeUtil
public MergeUtil()
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<? extends ConfigProperty> mergeConfigList(List<? extends ConfigProperty> left,
List<? extends 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
Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)