CommandResultWith

public class CommandResultWith
extends Object

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


Zawiera uporządkowany wynik polecenia.

Podsumowanie

Metody publiczne

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)

Metody publiczne

error

public static CommandResultWith<T> error (CommandResult commandResult)

Parametry
commandResult CommandResult

Zwraca
CommandResultWith<T>

errorString

public static CommandResultWith<T> errorString (String error)

Parametry
error String

Zwraca
CommandResultWith<T>

getCommandResult

public CommandResult getCommandResult ()

Zwraca
CommandResult

getValue

public T getValue ()

Zwraca
T

isSuccess

public boolean isSuccess ()

Zwraca
boolean

success

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

Parametry
value T

commandResult CommandResult

Zwraca
CommandResultWith<T>

success

public static CommandResultWith<T> success (T value)

Parametry
value T

Zwraca
CommandResultWith<T>