Class ActionResult<T>


  • public final class ActionResult<T>
    extends Object
    Class that allows to return result and expected exit code from action execution.

    It's not a record for now because of the need to support Java 11.

    • Constructor Detail

      • ActionResult

        public ActionResult​(T result)
      • ActionResult

        public ActionResult​(T result,
                            int exitCode)
      • ActionResult

        public ActionResult​(T result,
                            int exitCode,
                            String exitMessage)
    • Method Detail

      • result

        public T result()
      • exitCode

        public int exitCode()
      • exitMessage

        public String exitMessage()