CommandResultWith

public class CommandResultWith
extends Object

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


Contient le résultat structuré d'une commande.

Résumé

Méthodes publiques

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)

Méthodes publiques

erreur

public static CommandResultWith<T> error (CommandResult commandResult)

Paramètres
commandResult CommandResult

Retours
CommandResultWith<T>

errorString

public static CommandResultWith<T> errorString (String error)

Paramètres
error String

Retours
CommandResultWith<T>

getCommandResult

public CommandResult getCommandResult ()

Retours
CommandResult

getValue

public T getValue ()

Retours
T

isSuccess

public boolean isSuccess ()

Retours
boolean

success

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

Paramètres
value T

commandResult CommandResult

Retours
CommandResultWith<T>

success

public static CommandResultWith<T> success (T value)

Paramètres
value T

Renvoie
CommandResultWith<T>