Class LambdaSafe.InvocationResult<R>
java.lang.Object
org.springframework.boot.util.LambdaSafe.InvocationResult<R>
- Type Parameters:
- R- the result type
- Enclosing class:
- LambdaSafe
- 
Method SummaryModifier and TypeMethodDescription@Nullable Rget()Return the result of the invocation ornullif the callback wasn't suitable.@Nullable RReturn the result of the invocation or the given fallback if the callback wasn't suitable.booleanReturn true if a result in present.static <R> LambdaSafe.InvocationResult<R> noResult()Return anLambdaSafe.InvocationResultinstance representing no result.static <R> LambdaSafe.InvocationResult<R> of(@Nullable R value) Create a newLambdaSafe.InvocationResultinstance with the specified value.
- 
Method Details- 
hasResultpublic boolean hasResult()Return true if a result in present.- Returns:
- if a result is present
 
- 
getReturn the result of the invocation ornullif the callback wasn't suitable.- Returns:
- the result of the invocation or null
 
- 
get
- 
ofCreate a newLambdaSafe.InvocationResultinstance with the specified value.- Type Parameters:
- R- the result type
- Parameters:
- value- the value (may be- null)
- Returns:
- an LambdaSafe.InvocationResult
 
- 
noResultReturn anLambdaSafe.InvocationResultinstance representing no result.- Type Parameters:
- R- the result type
- Returns:
- an LambdaSafe.InvocationResult
 
 
-