Enum ECertificateValidityUnit
java.lang.Object
java.lang.Enum<ECertificateValidityUnit>
de.xima.fc.certificate.gui.internal.create.ECertificateValidityUnit
- All Implemented Interfaces:
Serializable, Comparable<ECertificateValidityUnit>
Enumeration representing the units of validity for a certificate. This enum provides different time units that can be
used to specify the validity period of a certificate.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionConverts the current enum value to the correspondingChronoUnit.getDisplayName(Locale locale) Returns the display name of the enum value in the specified locale.static ECertificateValidityUnitReturns the enum constant of this type with the specified name.static ECertificateValidityUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DAYS
Represents a validity period in days. -
WEEKS
Represents a validity period in weeks. -
MONTHS
Represents a validity period in months. -
YEARS
Represents a validity period in years.
-
-
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
-
asChronoUnit
Converts the current enum value to the correspondingChronoUnit.- Returns:
- the corresponding
ChronoUnitfor the current enum value. - Throws:
IllegalStateException- if the enum value is unexpected.
-
getDisplayName
-