Enum Class ConnectionString.ParseMode

java.lang.Object
java.lang.Enum<ConnectionString.ParseMode>
io.micronaut.core.util.ConnectionString.ParseMode
All Implemented Interfaces:
Serializable, Comparable<ConnectionString.ParseMode>, Constable
Enclosing class:
ConnectionString

public static enum ConnectionString.ParseMode extends Enum<ConnectionString.ParseMode>
Parse mode that defines which components are required.
Since:
5.0
  • Enum Constant Details

  • Method Details

    • values

      public static ConnectionString.ParseMode[] 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 ConnectionString.ParseMode 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
    • pathRequired

      public boolean pathRequired()
      Returns:
      Returns whether the path is required
    • hostRequired

      public boolean hostRequired()
      Returns:
      Returns whether at least one host is required