CommandResultWith
public
class
CommandResultWith
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.CommandResultWith<T> |
Contains the structured result of a command.
Summary
Public 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)
|
Public methods
error
public static CommandResultWith<T> error (CommandResult commandResult)
| Parameters | |
|---|---|
commandResult |
CommandResult |
| Returns | |
|---|---|
CommandResultWith<T> |
|
errorString
public static CommandResultWith<T> errorString (String error)
| Parameters | |
|---|---|
error |
String |
| Returns | |
|---|---|
CommandResultWith<T> |
|
getValue
public T getValue ()
| Returns | |
|---|---|
T |
|
isSuccess
public boolean isSuccess ()
| Returns | |
|---|---|
boolean |
|
success
public static CommandResultWith<T> success (T value, CommandResult commandResult)
| Parameters | |
|---|---|
value |
T |
commandResult |
CommandResult |
| Returns | |
|---|---|
CommandResultWith<T> |
|
success
public static CommandResultWith<T> success (T value)
| Parameters | |
|---|---|
value |
T |
| Returns | |
|---|---|
CommandResultWith<T> |
|