Enum ResultType

java.lang.Object
java.lang.Enum<ResultType>
org.fuin.cqrs4j.ResultType
All Implemented Interfaces:
Serializable, Comparable<ResultType>

public enum ResultType extends Enum<ResultType>
Type of the result.
  • Enum Constant Details

    • OK

      public static final ResultType OK
      Command was successfully executed.
    • WARNING

      public static final ResultType WARNING
      The command was executed, but there was some kind of issue.
    • ERROR

      public static final ResultType ERROR
      The command execution failed.
  • Method Details

    • values

      public static ResultType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ResultType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null