public class OptionalResult<T>
extends java.lang.Object
Constructor and Description |
---|
OptionalResult(T value,
StatusInfo status) |
Modifier and Type | Method and Description |
---|---|
StatusInfo |
getStatus()
Returns optional value status.
|
T |
getValue()
Get result value.
|
boolean |
ok()
Checks whether value is OK to unwrap.
|
java.lang.String |
toString() |
public OptionalResult(T value, StatusInfo status)
public StatusInfo getStatus()
public boolean ok()
public T getValue()
public java.lang.String toString()
toString
in class java.lang.Object