Enum Class ValidationResult.ResultCode
- All Implemented Interfaces:
Serializable, Comparable<ValidationResult.ResultCode>, Constable
- Enclosing class:
ValidationResult
Result codes for validation.
验证结果代码。
- Since:
- JDK 25, opencode-base-captcha V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCAPTCHA expired | 验证码已过期Invalid input | 输入无效Answer mismatch | 答案不匹配CAPTCHA not found | 验证码未找到Rate limit exceeded | 超过速率限制Validation successful | 验证成功Suspicious behavior detected | 检测到可疑行为 -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResult.ResultCodeReturns the enum constant of this class with the specified name.static ValidationResult.ResultCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Validation successful | 验证成功 -
NOT_FOUND
CAPTCHA not found | 验证码未找到 -
EXPIRED
CAPTCHA expired | 验证码已过期 -
MISMATCH
Answer mismatch | 答案不匹配 -
RATE_LIMITED
Rate limit exceeded | 超过速率限制 -
INVALID_INPUT
Invalid input | 输入无效 -
SUSPICIOUS_BEHAVIOR
Suspicious behavior detected | 检测到可疑行为
-
-
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
-