Package fr.marcwrobel.jbanking.swift
Enum SwiftPatternCharacterRepresentation
java.lang.Object
java.lang.Enum<SwiftPatternCharacterRepresentation>
fr.marcwrobel.jbanking.swift.SwiftPatternCharacterRepresentation
- All Implemented Interfaces:
Serializable,Comparable<SwiftPatternCharacterRepresentation>,java.lang.constant.Constable
The character representations in a
SwiftPattern.- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDigits (numeric characters 0 to 9 only).Blank space.Uppercase and lowercase case alphanumeric characters (A-Z, a-z and 0-9).Uppercase letters (alphabetic characters A-Z only). -
Method Summary
Modifier and TypeMethodDescriptionalphabet()Returns this character representation alphabet, i.e.from(char qualifier) Get the corresponding representation for the given qualifier.booleanhas(char c) Checks whether the given character belongs to this character representation.charReturns this character representation qualifier.regex()Returns this character representation regular expression.Returns the enum constant of this type with the specified name.static SwiftPatternCharacterRepresentation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIGITS
Digits (numeric characters 0 to 9 only). -
UPPER_CASE_LETTERS
Uppercase letters (alphabetic characters A-Z only). -
UPPER_AND_LOWER_CASE_ALPHANUMERICS
Uppercase and lowercase case alphanumeric characters (A-Z, a-z and 0-9). -
SPACES
Blank space.
-
-
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
-
from
Get the corresponding representation for the given qualifier.- Parameters:
qualifier- a char- Returns:
- a non-null optional SwiftPatternCharacterRepresentation
-
qualifier
public char qualifier()Returns this character representation qualifier.- Returns:
- a single character
-
alphabet
Returns this character representation alphabet, i.e. a String composed of all the characters in the representation.- Returns:
- a non-null string
-
regex
Returns this character representation regular expression.- Returns:
- a non-null string
-
has
public boolean has(char c) Checks whether the given character belongs to this character representation.- Parameters:
c- the char to test- Returns:
trueif the given character belongs to this character representation,falseotherwise
-