- All Implemented Interfaces:
Serializable, Comparable<TransportUtil.IPv6Config>, java.lang.constant.Constable
- Enclosing class:
TransportUtil
IPv6 configuration options for transports.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIPv6 disabled.Equal priority to IPv4.Force enabled even if we don't have a public IP, mainly for Docker with an IPv6 bridge.Lower priority than IPv4.IPv4 disabled.Higher priority than IPv4.Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIPv6Config(String cfgstr) Names an IPv6 mode after its config value.Method Summary
Modifier and TypeMethodDescriptionThe config string for this option.static TransportUtil.IPv6ConfigReturns the enum constant of this class with the specified name.static TransportUtil.IPv6Config[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
IPV6_DISABLED
IPv6 disabled.IPV6_NOT_PREFERRED
Lower priority than IPv4.IPV6_ENABLED
Equal priority to IPv4.IPV6_PREFERRED
Higher priority than IPv4.IPV6_ONLY
IPv4 disabled.IPV6_FORCE_ON
Force enabled even if we don't have a public IP, mainly for Docker with an IPv6 bridge.
Field Details
cfgstr
The config value this mode was named by.
Constructor Details
IPv6Config
Names an IPv6 mode after its config value.- Parameters:
cfgstr- the config value
Method Details
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
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 nameNullPointerException- if the argument is null
toConfigString
The config string for this option.- Returns:
- the config string this option serialises to