BetterModel
Toggle table of contents
1.11.4-SNAPSHOT-338
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.util
/
FunctionUtil
/
takeIf
take
If
open
fun
<
T
>
takeIf
(
@
NotNull
t
:
@
NotNull
T
,
@
NotNull
predicate
:
@
NotNull
Predicate
<
T
>
)
:
@
Nullable
T
Takes value if predicate is matched
Return
t or null
Parameters
t
t
predicate
predicate
<T>
type