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>