Package api.util
Interface UnitResult<E>
- All Known Implementing Classes:
UnitResult.Err,UnitResult.Ok
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> UnitResult<E>err(E reason) default EgetErr()default booleanisErr()default booleanisOk()static <E> UnitResult<E>ok()
-
Method Details
-
ok
-
err
-
isOk
default boolean isOk() -
isErr
default boolean isErr() -
getErr
-