isValid

Validates this Baked instance and returns the result.

Returns Result.success if all values are consistent and within the valid range, or Result.failure containing an IllegalStateException that describes the first violation found. Use isSuccess / isFailure on the returned Result to check the outcome.

Return

Result success if valid; failure with a descriptive exception if not

Since

5.2.0