CommandResultWith

public class CommandResultWith
extends Object

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


Contiene il risultato strutturato di un comando.

Riepilogo

Metodi pubblici

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)

Metodi pubblici

errore

public static CommandResultWith<T> error (CommandResult commandResult)

Parametri
commandResult CommandResult

Resi
CommandResultWith<T>

errorString

public static CommandResultWith<T> errorString (String error)

Parametri
error String

Resi
CommandResultWith<T>

getCommandResult

public CommandResult getCommandResult ()

Resi
CommandResult

getValue

public T getValue ()

Resi
T

isSuccess

public boolean isSuccess ()

Resi
boolean

operazione riuscita

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

Parametri
value T

commandResult CommandResult

Resi
CommandResultWith<T>

operazione riuscita

public static CommandResultWith<T> success (T value)

Parametri
value T

Risultati
CommandResultWith<T>