Mod10Check
and Mod11Check
@Documented @Deprecated @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=ModCheck.List.class) public @interface ModCheck
Allows to validate that a series of digits pass the mod 10 or mod 11 checksum algorithm.
The supported type is CharSequence
. null
is considered valid.
Modifier and Type | Required Element and Description |
---|---|
ModCheck.ModType |
modType
Deprecated.
|
int |
multiplier
Deprecated.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
checkDigitPosition
Deprecated.
|
int |
endIndex
Deprecated.
|
Class<?>[] |
groups
Deprecated.
|
boolean |
ignoreNonDigitCharacters
Deprecated.
|
String |
message
Deprecated.
|
Class<? extends Payload>[] |
payload
Deprecated.
|
int |
startIndex
Deprecated.
|
public abstract ModCheck.ModType modType
public abstract int multiplier
public abstract String message
public abstract Class<?>[] groups
public abstract int startIndex
public abstract int endIndex
public abstract int checkDigitPosition
checkDigitPosition > 0 && (checkDigitPosition < startIndex || checkDigitPosition >= endIndex
.Copyright © 2019 JBoss by Red Hat. All rights reserved.