public final class TryResult<T>
extends java.lang.Object
Constructor and Description |
---|
TryResult()
Default constructor.
|
TryResult(T result)
Overloaded constructor.
|
public TryResult()
public TryResult(T result)
public T getResult()
java.lang.IllegalStateException
- When this is called and the operation is not a success.public boolean isSuccess()