Enum UUID.LetterCase
- java.lang.Object
-
- java.lang.Enum<UUID.LetterCase>
-
- org.hibernate.validator.constraints.UUID.LetterCase
-
- All Implemented Interfaces:
Serializable,Comparable<UUID.LetterCase>
- Enclosing class:
- UUID
public static enum UUID.LetterCase extends Enum<UUID.LetterCase>
Required letter case for hex characters
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSENSITIVEEvery letter case is validLOWER_CASEOnly lower case is validUPPER_CASEOnly upper case is valid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUID.LetterCasevalueOf(String name)Returns the enum constant of this type with the specified name.static UUID.LetterCase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOWER_CASE
public static final UUID.LetterCase LOWER_CASE
Only lower case is valid
-
UPPER_CASE
public static final UUID.LetterCase UPPER_CASE
Only upper case is valid
-
INSENSITIVE
public static final UUID.LetterCase INSENSITIVE
Every letter case is valid
-
-
Method Detail
-
values
public static UUID.LetterCase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UUID.LetterCase c : UUID.LetterCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UUID.LetterCase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-