Enum Class VerifyMode

java.lang.Object
java.lang.Enum<VerifyMode>
org.refcodes.mixin.VerifyMode
All Implemented Interfaces:
Serializable, Comparable<VerifyMode>, Constable

public enum VerifyMode extends Enum<VerifyMode>
The verify-mode determines (when supported) whether an algorithm verifies its result before proceeding. In case verification fails, either the problem is just reported REPORT_ONLY e.g. logged or an exception (such as the VerifyRuntimeException found in the refcodes-exception artifact) is thrown ( THROW_EXCEPTION).
  • Enum Constant Details

    • NONE

      public static final VerifyMode NONE
      Verification is disabled.
    • REPORT_ONLY

      public static final VerifyMode REPORT_ONLY
      Verification is enabled, problems are only reported.
    • THROW_EXCEPTION

      public static final VerifyMode THROW_EXCEPTION
      Verification is enabled, problems cause an exception. You may use the VerifyRuntimeException found in the refcodes-exception artifact.
  • Method Details

    • values

      public static VerifyMode[] 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 VerifyMode 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
    • isVerify

      public boolean isVerify()
      Checks if is verify.
      Returns:
      true, if is verify