Package org.bitcoinj.core
Enum NetworkParameters.ProtocolVersion
- java.lang.Object
-
- java.lang.Enum<NetworkParameters.ProtocolVersion>
-
- org.bitcoinj.core.NetworkParameters.ProtocolVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NetworkParameters.ProtocolVersion>
- Enclosing class:
- NetworkParameters
public static enum NetworkParameters.ProtocolVersion extends java.lang.Enum<NetworkParameters.ProtocolVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOOM_FILTER
BLOOM_FILTER_BIP111
CURRENT
FEEFILTER
MINIMUM
PONG
WITNESS_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitcoinProtocolVersion()
static NetworkParameters.ProtocolVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NetworkParameters.ProtocolVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINIMUM
public static final NetworkParameters.ProtocolVersion MINIMUM
-
PONG
public static final NetworkParameters.ProtocolVersion PONG
-
BLOOM_FILTER
public static final NetworkParameters.ProtocolVersion BLOOM_FILTER
-
BLOOM_FILTER_BIP111
public static final NetworkParameters.ProtocolVersion BLOOM_FILTER_BIP111
-
WITNESS_VERSION
public static final NetworkParameters.ProtocolVersion WITNESS_VERSION
-
FEEFILTER
public static final NetworkParameters.ProtocolVersion FEEFILTER
-
CURRENT
public static final NetworkParameters.ProtocolVersion CURRENT
-
-
Method Detail
-
values
public static NetworkParameters.ProtocolVersion[] 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 (NetworkParameters.ProtocolVersion c : NetworkParameters.ProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkParameters.ProtocolVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getBitcoinProtocolVersion
public int getBitcoinProtocolVersion()
-
-