| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private static final int[] | |
| private UUID. | |
| private int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int[] | |
| private static int | extractVariant(int
The old variant (in case the variant has already been extracted) variant, int The index of the current value to find the variant to extract index, int The numeric value at the character position value)Get the 3 bit UUID variant from the current value |
| private static int | extractVersion(int
The old version (in case the version has already been extracted) version, int The index of the current value to find the version to extract index, int The numeric value at the character position value)Get the 4 bit UUID version from the current value |
| private boolean | Returns: true if the character is in the specified letter case or letter case is not specifiedThe letter to be tested ch)Validates the letter case of the given character depending on the letter case parameter |
| public void | initialize(UUID
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(CharSequence
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated context)Implements jakarta. |
| allowEmpty | back to summary |
|---|---|
| private boolean allowEmpty | |
| allowNil | back to summary |
|---|---|
| private boolean allowNil | |
| GROUP_LENGTHS | back to summary |
|---|---|
| private static final int[] GROUP_LENGTHS | |
| letterCase | back to summary |
|---|---|
| private UUID. | |
| variant | back to summary |
|---|---|
| private int[] variant | |
| version | back to summary |
|---|---|
| private int[] version | |
| UUIDValidator | back to summary |
|---|---|
| public UUIDValidator() | |
| checkAndSortMultiOptionParameter | back to summary |
|---|---|
| private static int[] checkAndSortMultiOptionParameter(int[] values, String parameterName, int minimum, int maximum) | |
| extractVariant | back to summary |
|---|---|
| private static int extractVariant(int variant, int index, int value) Get the 3 bit UUID variant from the current value
| |
| extractVersion | back to summary |
|---|---|
| private static int extractVersion(int version, int index, int value) Get the 4 bit UUID version from the current value
| |
| hasCorrectLetterCase | back to summary |
|---|---|
| private boolean hasCorrectLetterCase(char ch) Validates the letter case of the given character depending on the letter case parameter
| |
| initialize | back to summary |
|---|---|
| public void initialize(UUID constraintAnnotation) Overrides default jakarta. Doc from jakarta. Initializes the validator in preparation for
This method is guaranteed to be called before any use of this instance for validation. The default implementation is a no-op. | |
| isValid | back to summary |
|---|---|
| public boolean isValid(CharSequence value, ConstraintValidatorContext context) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |