- All Implemented Interfaces:
Serializable
,Comparable<VerifyMode>
,Constable
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
).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionVerification is disabled.Verification is enabled, problems are only reported.Verification is enabled, problems cause an exception. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isVerify()
Checks if is verify.static VerifyMode
Returns the enum constant of this class with the specified name.static VerifyMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Verification is disabled. -
REPORT_ONLY
Verification is enabled, problems are only reported. -
THROW_EXCEPTION
Verification is enabled, problems cause an exception. You may use the VerifyRuntimeException found in the refcodes-exception artifact.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isVerify
public boolean isVerify()Checks if is verify.- Returns:
- true, if is verify
-