public class Status extends Object
Constructor and Description |
---|
Status(String result,
String code,
String detail)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
code()
Returns the status code description.
|
String |
detail()
Returns the status detail (optional).
|
boolean |
isFailed()
Returns true, if the status result is
FAILED . |
boolean |
isSuccess()
Returns true, if the status result is
SUCCESS . |
String |
result()
|
String |
toString() |
public String result()
public boolean isSuccess()
SUCCESS
.SUCCESS
public boolean isFailed()
FAILED
.FAILED
public String code()
public String detail()
Copyright © 2015. All Rights Reserved.