Enum Class StatusAdocao

java.lang.Object
java.lang.Enum<StatusAdocao>
br.com.pawsoncloud.entidades.enums.StatusAdocao
All Implemented Interfaces:
Serializable, Comparable<StatusAdocao>, Constable

public enum StatusAdocao extends Enum<StatusAdocao>
Enum que representa o status de adoção do pet na tabela animais.
Author:
Edielson Assis
  • Enum Constant Details

    • DISPONIVEL

      public static final StatusAdocao DISPONIVEL
      Retorna o status: DISPONIVEL
    • PROCESSO_ADOCAO

      public static final StatusAdocao PROCESSO_ADOCAO
      Retorna o status: PROCESSO_ADOCAO
    • ADOTADO

      public static final StatusAdocao ADOTADO
      Retorna o status: ADOTADO
  • Method Details

    • values

      public static StatusAdocao[] 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 StatusAdocao 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
    • getCode

      public int getCode()
      Retorna o código associado ao status.
      Returns:
      número do código.
    • valueOf

      public static StatusAdocao valueOf(int code)
      Retorna o status de adoção de acordo o código informado.
      Parameters:
      code - código associado ao status.
      Returns:
      StatusAdocao
      Throws:
      IllegalArgumentException - é lançada caso o código for inválido.