Enum Class DocumentEnum

java.lang.Object
java.lang.Enum<DocumentEnum>
es.kukenan.smartfi.microservice.smartficore.enums.DocumentEnum
All Implemented Interfaces:
Serializable, Comparable<DocumentEnum>, Constable

public enum DocumentEnum extends Enum<DocumentEnum>
Type of document enumeration.
  • Enum Constant Details

    • ID_CARD

      public static final DocumentEnum ID_CARD
      ID_CARD.
    • CONTRACT

      public static final DocumentEnum CONTRACT
      CONTRACT.
    • PROOF_OF_PAYMENT

      public static final DocumentEnum PROOF_OF_PAYMENT
      PROOF_OF_PAYMENT.
    • OTHER

      public static final DocumentEnum OTHER
      OTHER.
    • INVOICE

      public static final DocumentEnum INVOICE
      INVOICE.
    • ADDI

      public static final DocumentEnum ADDI
      ADDI.
  • Field Details

    • type

      private final Long type
      Document type.
    • typeName

      private final String typeName
      Document type name.
  • Constructor Details

    • DocumentEnum

      private DocumentEnum(Long type, String typeName)
      Default constructor.
      Parameters:
      type - type
      typeName - typeName
  • Method Details

    • values

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

      public static DocumentEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null