org.codehaus.spice.salt.config
Class ParametersUtil
java.lang.Object
org.codehaus.spice.salt.config.ParametersUtil
- public class ParametersUtil
- extends Object
Class containing utility methods to work with Parameters objects.
- Version:
- $Revision: 1.1 $ $Date: 2003/12/02 02:15:04 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParametersUtil
public ParametersUtil()
fromProperties
public static Parameters fromProperties(Properties properties)
- Create a Parameters object from aproperties object.
- Parameters:
properties
- the properties object
- Returns:
- the new Parameters object
merge
public static Parameters merge(Parameters parameters1,
Parameters parameters2)
- Create a Parameters object that is the result of merging the two
parameters objects. If the same key appears in both then the value will
be the value in parameters2 parameter.
- Parameters:
parameters1
- the first parameters objectparameters2
- the second parameters object
- Returns:
- the new Parameters object
Copyright © 1999-2006 Codehaus. All Rights Reserved.