Package org.bitcoinj.protobuf.wallet
Enum Protos.Key.OutputScriptType
- java.lang.Object
-
- java.lang.Enum<Protos.Key.OutputScriptType>
-
- org.bitcoinj.protobuf.wallet.Protos.Key.OutputScriptType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<Protos.Key.OutputScriptType>
- Enclosing class:
- Protos.Key
public static enum Protos.Key.OutputScriptType extends java.lang.Enum<Protos.Key.OutputScriptType> implements com.google.protobuf.Internal.EnumLite
Protobuf enumwallet.Key.OutputScriptType
-
-
Field Summary
Fields Modifier and Type Field Description static intP2PKH_VALUEP2PKH = 1;static intP2WPKH_VALUEP2WPKH = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.Key.OutputScriptTypeforNumber(int value)intgetNumber()static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.OutputScriptType>internalGetValueMap()static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()static Protos.Key.OutputScriptTypevalueOf(int value)Deprecated.static Protos.Key.OutputScriptTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Protos.Key.OutputScriptType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
P2PKH
public static final Protos.Key.OutputScriptType P2PKH
P2PKH = 1;
-
P2WPKH
public static final Protos.Key.OutputScriptType P2WPKH
P2WPKH = 2;
-
-
Field Detail
-
P2PKH_VALUE
public static final int P2PKH_VALUE
P2PKH = 1;- See Also:
- Constant Field Values
-
P2WPKH_VALUE
public static final int P2WPKH_VALUE
P2WPKH = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.Key.OutputScriptType[] 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 (Protos.Key.OutputScriptType c : Protos.Key.OutputScriptType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protos.Key.OutputScriptType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
@Deprecated public static Protos.Key.OutputScriptType valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static Protos.Key.OutputScriptType forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.OutputScriptType> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-