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>