CommandResultWith

public class CommandResultWith
extends Object

java.lang.Object
com.android.tradefed.util.CommandResultWith<T>


コマンドの構造化された結果が含まれます。

概要

パブリック メソッド

static <T> CommandResultWith<T> error(CommandResult commandResult)
static <T> CommandResultWith<T> errorString(String error)
CommandResult getCommandResult()
T getValue()
boolean isSuccess()
static <T> CommandResultWith<T> success(T value, CommandResult commandResult)
static <T> CommandResultWith<T> success(T value)

パブリック メソッド

エラー

public static CommandResultWith<T> error (CommandResult commandResult)

パラメータ
commandResult CommandResult

戻り値
CommandResultWith<T>

errorString

public static CommandResultWith<T> errorString (String error)

パラメータ
error String

戻り値
CommandResultWith<T>

getCommandResult

public CommandResult getCommandResult ()

戻り値
CommandResult

getValue

public T getValue ()

戻り値
T

isSuccess

public boolean isSuccess ()

戻り値
boolean

成功

public static CommandResultWith<T> success (T value, 
                CommandResult commandResult)

パラメータ
value T

commandResult CommandResult

戻り値
CommandResultWith<T>

成功

public static CommandResultWith<T> success (T value)

パラメータ
value T

戻り値
CommandResultWith<T>