Package org.ldk.enums
Enum SocketAddressParseError
- java.lang.Object
-
- java.lang.Enum<SocketAddressParseError>
-
- org.ldk.enums.SocketAddressParseError
-
- All Implemented Interfaces:
Serializable,Comparable<SocketAddressParseError>
public enum SocketAddressParseError extends Enum<SocketAddressParseError>
[`SocketAddress`] error variants
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKSocketAddressParseError_InvalidInputInvalid input formatLDKSocketAddressParseError_InvalidOnionV3Invalid onion v3 addressLDKSocketAddressParseError_InvalidPortInvalid portLDKSocketAddressParseError_SocketAddrParseSocket address (IPv4/IPv6) parsing error
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketAddressParseErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static SocketAddressParseError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKSocketAddressParseError_SocketAddrParse
public static final SocketAddressParseError LDKSocketAddressParseError_SocketAddrParse
Socket address (IPv4/IPv6) parsing error
-
LDKSocketAddressParseError_InvalidInput
public static final SocketAddressParseError LDKSocketAddressParseError_InvalidInput
Invalid input format
-
LDKSocketAddressParseError_InvalidPort
public static final SocketAddressParseError LDKSocketAddressParseError_InvalidPort
Invalid port
-
LDKSocketAddressParseError_InvalidOnionV3
public static final SocketAddressParseError LDKSocketAddressParseError_InvalidOnionV3
Invalid onion v3 address
-
-
Method Detail
-
values
public static SocketAddressParseError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SocketAddressParseError c : SocketAddressParseError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SocketAddressParseError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-