Class CollectionUtils

java.lang.Object
org.mule.runtime.dsl.internal.util.CollectionUtils

public class CollectionUtils extends Object
Miscellaneous collection utility methods.
Since:
1.4.0
  • Method Details

    • mergePropertiesIntoMap

      public static <K, V> void mergePropertiesIntoMap(Properties props, Map<K,V> map)
      Merge the given Properties instance into the given Map, copying all properties (key-value pairs) over.

      Uses Properties.propertyNames() to even catch default properties linked into the original Properties instance.

      Parameters:
      props - the Properties instance to merge (may be null)
      map - the target Map to merge the properties into