java.lang.Object
java.lang.Enum<Transport.AddressSource>
net.i2p.router.transport.Transport.AddressSource
All Implemented Interfaces:
Serializable, Comparable<Transport.AddressSource>, java.lang.constant.Constable
Enclosing interface:
Transport

public static enum Transport.AddressSourceextends Enum<Transport.AddressSource>
Source of transport address configuration.
  • Enum Constant Details

  • Field Details

    • cfgstr

      private final String cfgstr
      Name written for this source in the transport's config.
  • Constructor Details

    • AddressSource

      private AddressSource(String cfgstr)
      Names a source by its configuration string.
      Parameters:
      cfgstr - the configuration string
  • Method Details

    • values

      public static Transport.AddressSource[] 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 Transport.AddressSource 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()
      Config string for this address source.
      Returns:
      config string