Package org.ldk.enums
Enum Network
- java.lang.Object
-
- java.lang.Enum<Network>
-
- org.ldk.enums.Network
-
- All Implemented Interfaces:
Serializable
,Comparable<Network>
public enum Network extends Enum<Network>
An enum representing the possible Bitcoin or test networks which we can run on
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKNetwork_Bitcoin
The main Bitcoin blockchain.LDKNetwork_Regtest
A local test blockchain.LDKNetwork_Signet
A blockchain on which blocks are signed instead of mined.LDKNetwork_Testnet
The testnet3 blockchain.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Network
valueOf(String name)
Returns the enum constant of this type with the specified name.static Network[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKNetwork_Bitcoin
public static final Network LDKNetwork_Bitcoin
The main Bitcoin blockchain.
-
LDKNetwork_Testnet
public static final Network LDKNetwork_Testnet
The testnet3 blockchain.
-
LDKNetwork_Regtest
public static final Network LDKNetwork_Regtest
A local test blockchain.
-
LDKNetwork_Signet
public static final Network LDKNetwork_Signet
A blockchain on which blocks are signed instead of mined.
-
-
Method Detail
-
values
public static Network[] 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 (Network c : Network.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Network 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
-
-