Enum ECertificateValidityUnit

java.lang.Object
java.lang.Enum<ECertificateValidityUnit>
de.xima.fc.certificate.gui.internal.create.ECertificateValidityUnit
All Implemented Interfaces:
Serializable, Comparable<ECertificateValidityUnit>

public enum ECertificateValidityUnit extends Enum<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 Details

  • Method Details

    • values

      public static ECertificateValidityUnit[] 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

      public static ECertificateValidityUnit 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 name
      NullPointerException - if the argument is null
    • asChronoUnit

      public ChronoUnit asChronoUnit()
      Converts the current enum value to the corresponding ChronoUnit.
      Returns:
      the corresponding ChronoUnit for the current enum value.
      Throws:
      IllegalStateException - if the enum value is unexpected.
    • getDisplayName

      public String getDisplayName(Locale locale)
      Returns the display name of the enum value in the specified locale.
      Parameters:
      locale - the locale for which to get the display name
      Returns:
      the display name of the enum value in the specified locale