QueryingValues<T, E> extension
Querying the contained values
Properties
-
isErr
→ bool
-
Resturns
true
if the result is err
(failure)
no setter
-
isOk
→ bool
-
Resturns
true
if the result is ok
(success)
no setter
Methods
-
isErrAnd(bool f(E error))
→ bool
-
Returns
true
if the result is err
and the value matches the predicate f
-
isOkAnd(bool f(T value))
→ bool
-
Returns
true
if the result is ok
and the value matches the predicate f