Package adams.core
Class VariablesUtils
- java.lang.Object
-
- adams.core.VariablesUtils
-
public class VariablesUtils extends Object
Helper methods around variable handling.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description VariablesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
transferVariable(OptionHandler source, OptionHandler target, String property)
Transfers the variable (if any attached).static void
transferVariable(OptionHandler source, String sourceProperty, OptionHandler target, String targetProperty)
Transfers the variable (if any attached) form one property to another.
-
-
-
Method Detail
-
transferVariable
public static void transferVariable(OptionHandler source, OptionHandler target, String property)
Transfers the variable (if any attached).- Parameters:
source
- the source from which to transfer the variabletarget
- the target to receive the variableproperty
- the property for which to transfer the variable
-
transferVariable
public static void transferVariable(OptionHandler source, String sourceProperty, OptionHandler target, String targetProperty)
Transfers the variable (if any attached) form one property to another.- Parameters:
source
- the source from which to transfer the variablesourceProperty
- the source property for which to transfer the variabletarget
- the target to receive the variabletargetProperty
- the target property to receive the variable
-
-