Enum Class InvalidHashTableCapacityException.Reason

java.lang.Object
java.lang.Enum<InvalidHashTableCapacityException.Reason>
AEDs3.DataBase.Index.InvalidHashTableCapacityException.Reason
All Implemented Interfaces:
Serializable, Comparable<InvalidHashTableCapacityException.Reason>, Constable
Enclosing class:
InvalidHashTableCapacityException

public static enum InvalidHashTableCapacityException.Reason extends Enum<InvalidHashTableCapacityException.Reason>
Razões pelas quais a capacidade de uma Tabela Hash pode ser considerada inválida.
  • Enum Constant Details

  • Field Details

    • message

      private final String message
      Mensagem descritiva da razão.
  • Constructor Details

    • Reason

      private Reason(String message)
      Construtor para definir a mensagem associada à razão.
      Parameters:
      message - A mensagem descritiva da razão.
  • Method Details

    • values

      public static InvalidHashTableCapacityException.Reason[] 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 InvalidHashTableCapacityException.Reason 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
    • getMessage

      public String getMessage()
      Obtém a mensagem descritiva da razão.
      Returns:
      A mensagem da razão.