com.sun.enterprise.util
Class Result<T>

java.lang.Object
  extended by com.sun.enterprise.util.Result<T>

public class Result<T>
extends java.lang.Object

Used to carry a result or an exception justifying why a result could not be produced

Author:
Jerome Dochez

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

Result

public Result(T result)

Result

public Result(java.lang.Throwable t)
Method Detail

isSuccess

public boolean isSuccess()

isFailure

public boolean isFailure()

result

public T result()

exception

public java.lang.Throwable exception()


Copyright © 2012 GlassFish Community. All Rights Reserved.