CommandResultWith

public class CommandResultWith
extends Object

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


इसमें किसी कमांड का स्ट्रक्चर्ड नतीजा होता है.

खास जानकारी

पब्लिक मेथड

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)

पब्लिक मेथड

गड़बड़ी

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

success

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

पैरामीटर
value T

commandResult CommandResult

रिटर्न
CommandResultWith<T>

success

public static CommandResultWith<T> success (T value)

पैरामीटर
value T

रिटर्न
CommandResultWith<T>