public class FlowReturnException extends FlowBreakException
| Constructor and Description |
|---|
FlowReturnException() |
FlowReturnException(Object value) |
FlowReturnException(Object value,
Enum<?> label) |
| Modifier and Type | Method and Description |
|---|---|
<T,S extends T> |
getOrElse(S elze,
@NotNull Class<T> type)
return elze if type not match
|
<T> T |
getOrElse(T elze)
return elze if null
|
<T> T |
getValue() |
String |
toString() |
getLabel, inLabelsfillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic FlowReturnException()
public FlowReturnException(Object value)
@Nullable public <T> T getValue()
@Contract(value="!null -> !null")
public <T> T getOrElse(@Nullable
T elze)
T - typeelze - else@Contract(value="!null,_ -> !null")
public <T,S extends T> T getOrElse(@Nullable
S elze,
@NotNull
@NotNull Class<T> type)
T - type of return valueS - subclass type of Telze - elsetype - type to matchpublic String toString()
toString in class FlowBreakExceptionCopyright © 2024. All rights reserved.