Enum Class PersonalIdentityNumber.Format
java.lang.Object
java.lang.Enum<PersonalIdentityNumber.Format>
se.swedenconnect.bankid.rpapi.support.PersonalIdentityNumber.Format
- All Implemented Interfaces:
Serializable
,Comparable<PersonalIdentityNumber.Format>
,Constable
- Enclosing class:
PersonalIdentityNumber
Enum for formatting a personal identity number.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTen digits with a delimiter.Ten digits with no delimiter.Twelve digits with a delimiter.Twelve digits with no delimiter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PersonalIdentityNumber.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TWELVE_DIGITS_NO_DELIMITER
Twelve digits with no delimiter. -
TWELVE_DIGITS_DELIMITER
Twelve digits with a delimiter. -
TEN_DIGITS_NO_DELIMITER
Ten digits with no delimiter. -
TEN_DIGITS_DELIMITER
Ten digits with a delimiter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-