Enum Class AssertCurrent

java.lang.Object
java.lang.Enum<AssertCurrent>
io.fluxzero.sdk.persisting.eventsourcing.AssertCurrent
All Implemented Interfaces:
Serializable, Comparable<AssertCurrent>, Constable

public enum AssertCurrent extends Enum<AssertCurrent>
Whether an apply interceptor validates its current input before transforming it.
  • Enum Constant Details

    • DEFAULT

      public static final AssertCurrent DEFAULT
      Uses the application property, or its versioned default when that property is absent.
    • ENABLED

      public static final AssertCurrent ENABLED
      Validates the current input, including inputs that the interceptor suppresses.
    • DISABLED

      public static final AssertCurrent DISABLED
      Leaves legality checks to the effective updates produced by interception.
  • Method Details

    • values

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

      public static AssertCurrent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • enabled

      public boolean enabled(boolean configuredDefault)
      Resolves this method's override against the owning application's configured default.