to top
public class

OptionCopier

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OptionCopier ()

Public Methods

public static void copyOptions (Object origObject, Object destObject)

Copy the values from Option fields in origObject to destObject

Parameters
origObject the Object to copy from
destObject the Object tp copy to
Throws
ConfigurationException if options failed to copy

public static void copyOptionsNoThrow (Object source, Object dest)

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