CommandResultWith

public class CommandResultWith
extends Object

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


מכיל את התוצאה המובנית של פקודה.

סיכום

‫methods ציבוריים

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)

‫methods ציבוריים

שגיאה

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>