Class ResultExample

java.lang.Object
com.guinetik.corefun.examples.ResultExample

public class ResultExample extends Object
Demonstrates usage of the Result monad for functional error handling. Result<S, F> represents either a Success containing a value of type S, or a Failure containing an error of type F. This eliminates null-checking and exception handling in favor of explicit, composable error handling.
  • Constructor Details

    • ResultExample

      public ResultExample()
  • Method Details

    • main

      public static void main(String[] args)