T - the type of valuepublic class Value<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
Throwable |
error
Deprecated.
The getCause() getter should be used instead.
|
T |
value
Deprecated.
The getValue() getter should be used instead.
|
| Constructor and Description |
|---|
Value(T value)
Constructor for a value without an exception
|
Value(Throwable error)
Constructor for a value with an exception
|
Value(T value,
Throwable error)
Constructor for a value with an exception
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
The associated throwable (may be null)
|
T |
getValue()
Returns the actual value (may be null)
|
Value<T> |
setCause(Throwable cause)
The associated throwable (may be null)
|
Value<T> |
setValue(T value)
Sets the actual value (may be null)
|
@Deprecated public T value
@Deprecated public Throwable error
public Value(T value)
value - the underlying valuepublic Value(T value, Throwable error)
value - the underlying valueerror - the associated exceptionpublic Value(Throwable error)
error - the associated exceptionCopyright © 2013-2014 Englishtown. All Rights Reserved.