Uses of Interface
org.panteleyev.commons.functional.Result
Packages that use Result
-
Uses of Result in org.panteleyev.commons.functional
Classes in org.panteleyev.commons.functional that implement ResultModifier and TypeClassDescriptionfinal recordFailure<T>This class represents failed result with exception.final recordSuccess<T>This class represents successful result with value of typeT.Methods in org.panteleyev.commons.functional that return ResultModifier and TypeMethodDescriptionstatic <T> Result<T> Result.empty()Creates an empty successful result.static <T> Result<T> Creates a failed result.Calls consumer with exception in case of failure.Calls consumer with result value in case of success.static <T> Result<T> Result.success(T value) Creates a successful result.