java.lang.Object
java.lang.Enum<TransportUtil.IPv6Config>
net.i2p.router.transport.TransportUtil.IPv6Config
All Implemented Interfaces:
Serializable, Comparable<TransportUtil.IPv6Config>, java.lang.constant.Constable
Enclosing class:
TransportUtil

public static enum TransportUtil.IPv6Configextends Enum<TransportUtil.IPv6Config>
IPv6 configuration options for transports.
  • Enum Constant Details

  • Field Details

    • cfgstr

      private final String cfgstr
      The config value this mode was named by.
  • Constructor Details

    • IPv6Config

      private IPv6Config(String cfgstr)
      Names an IPv6 mode after its config value.
      Parameters:
      cfgstr - the config value
  • Method Details

    • values

      public static TransportUtil.IPv6Config[] 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 TransportUtil.IPv6Config 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
    • toConfigString

      public String toConfigString()
      The config string for this option.
      Returns:
      the config string this option serialises to