OptionCopier

public class OptionCopier
extends Object

java.lang.Object
   ↳ com.android.tradefed.config.OptionCopier


A helper class that can copy Option field values with same names from one object to another.

Summary

Public constructors

OptionCopier()

Public methods

static void copyOptions(Object origObject, Object destObject)

Copy the values from Option fields in origObject to destObject

static void copyOptionsNoThrow(Object source, Object dest)

Identical to copyOptions(Object, Object) but will log instead of throw if exception occurs.

Public constructors

OptionCopier

OptionCopier ()

Public methods

copyOptions

void copyOptions (Object origObject, 
                Object destObject)

Copy the values from Option fields in origObject to destObject

Parameters
origObject Object: the Object to copy from

destObject Object: the Object tp copy to

Throws
ConfigurationException if options failed to copy

copyOptionsNoThrow

void copyOptionsNoThrow (Object source, 
                Object dest)

Identical to copyOptions(Object, Object) but will log instead of throw if exception occurs.

Parameters
source Object

dest Object