Package com.sanctionco.opconnect.model
Enum CharacterSet
- All Implemented Interfaces:
Serializable
,Comparable<CharacterSet>
,java.lang.constant.Constable
Represents all allowed types of character sets.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CharacterSet>
Returns a list ofCharacterSet
containing all characters.static List<CharacterSet>
digits()
Returns a list ofCharacterSet
containing only digits.static List<CharacterSet>
Returns a list ofCharacterSet
containing digits and symbols.static List<CharacterSet>
letters()
Returns a list ofCharacterSet
containing only letters.static List<CharacterSet>
Returns a list ofCharacterSet
containing letters and digits.static List<CharacterSet>
Returns a list ofCharacterSet
containing letters and symbols.static List<CharacterSet>
symbols()
Returns a list ofCharacterSet
containing only symbols.static CharacterSet
Returns the enum constant of this type with the specified name.static CharacterSet[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LETTERS
The character set consisting of only letters. -
DIGITS
The character set consisting of only numerical digits. -
SYMBOLS
The character set consisting of only symbols.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
letters
Returns a list ofCharacterSet
containing only letters.- Returns:
- the new
List
-
digits
Returns a list ofCharacterSet
containing only digits.- Returns:
- the new
List
-
symbols
Returns a list ofCharacterSet
containing only symbols.- Returns:
- the new
List
-
lettersAndDigits
Returns a list ofCharacterSet
containing letters and digits.- Returns:
- the new
List
-
lettersAndSymbols
Returns a list ofCharacterSet
containing letters and symbols.- Returns:
- the new
List
-
digitsAndSymbols
Returns a list ofCharacterSet
containing digits and symbols.- Returns:
- the new
List
-
allCharacters
Returns a list ofCharacterSet
containing all characters.- Returns:
- the new
List
-