org.jfrog.build.api.util
Class PropertyUtils

java.lang.Object
  extended by org.jfrog.build.api.util.PropertyUtils

public abstract class PropertyUtils
extends java.lang.Object

Utilities for filtering properties


Constructor Summary
PropertyUtils()
           
 
Method Summary
static java.util.Properties filterProperties(java.util.Map<java.lang.String,java.lang.String> original, java.util.Collection<java.lang.String> includes, java.util.Collection<java.lang.String> excludes)
          Filter the provided properties according to the set of include/exclude keys.
static java.util.Properties filterProperties(java.util.Properties original, java.util.Collection<java.lang.String> includes, java.util.Collection<java.lang.String> excludes)
          Filter the provided properties according to the set of include/exclude keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

filterProperties

public static java.util.Properties filterProperties(java.util.Properties original,
                                                    java.util.Collection<java.lang.String> includes,
                                                    java.util.Collection<java.lang.String> excludes)
Filter the provided properties according to the set of include/exclude keys.

Parameters:
original - The original properties
includes - A set of keys to keep
excludes - A set of keys to filter out (always overrule includes)
Returns:

filterProperties

public static java.util.Properties filterProperties(java.util.Map<java.lang.String,java.lang.String> original,
                                                    java.util.Collection<java.lang.String> includes,
                                                    java.util.Collection<java.lang.String> excludes)
Filter the provided properties according to the set of include/exclude keys.

Parameters:
original - The original properties
includes - A set of keys to keep
excludes - A set of keys to filter out (always overrule includes)
Returns: