|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.util.Result<T>
public class Result<T>
Used to carry a result or an exception justifying why a result could not be produced
| Constructor Summary | |
|---|---|
Result(T result)
|
|
Result(java.lang.Throwable t)
|
|
| Method Summary | |
|---|---|
java.lang.Throwable |
exception()
|
boolean |
isFailure()
|
boolean |
isSuccess()
|
T |
result()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Result(T result)
public Result(java.lang.Throwable t)
| Method Detail |
|---|
public boolean isSuccess()
public boolean isFailure()
public T result()
public java.lang.Throwable exception()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||