|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.rendering.api.Result
public class Result
Scene result class. This is an immutable class.
This cannot be allocated directly, instead useResult.Status.createResult()
,
Result.Status.createResult(String, Throwable)
,
Result.Status.createResult(String)
Result.Status.createResult(Object)
Nested Class Summary | |
---|---|
static class |
Result.Status
Scene Status enum. |
Method Summary | |
---|---|
Result |
getCopyWithData(java.lang.Object data)
Returns a copy of the current result with the added (or replaced) given data |
java.lang.Object |
getData()
Returns the optional data bundle stored in the result object. |
java.lang.String |
getErrorMessage()
Returns the error message. |
java.lang.Throwable |
getException()
Returns the exception. |
Result.Status |
getStatus()
Returns the status. |
boolean |
isSuccess()
Returns whether the status is successful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Result getCopyWithData(java.lang.Object data)
data
- the data bundle
public boolean isSuccess()
This is the same as calling getStatus() == SceneStatus.SUCCESS
true
if the status is successful.public Result.Status getStatus()
public java.lang.String getErrorMessage()
getStatus()
returns
Result.Status.ERROR_UNKNOWN
public java.lang.Throwable getException()
getStatus()
returns
Result.Status.ERROR_UNKNOWN
public java.lang.Object getData()
null
if none have been set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |