CommandResultWith

public class CommandResultWith
extends Object

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


Chứa kết quả có cấu trúc của một lệnh.

Tóm tắt

Phương thức công khai

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)

Phương thức công khai

lỗi

public static CommandResultWith<T> error (CommandResult commandResult)

Tham số
commandResult CommandResult

Giá trị trả về
CommandResultWith<T>

errorString

public static CommandResultWith<T> errorString (String error)

Tham số
error String

Giá trị trả về
CommandResultWith<T>

getCommandResult

public CommandResult getCommandResult ()

Giá trị trả về
CommandResult

getValue

public T getValue ()

Giá trị trả về
T

isSuccess

public boolean isSuccess ()

Giá trị trả về
boolean

thành công

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

Tham số
value T

commandResult CommandResult

Giá trị trả về
CommandResultWith<T>

thành công

public static CommandResultWith<T> success (T value)

Tham số
value T

Trả về
CommandResultWith<T>