Package org.bitcoinj.wallet
Enum Protos.TransactionConfidence.Type
- java.lang.Object
-
- java.lang.Enum<Protos.TransactionConfidence.Type>
-
- org.bitcoinj.wallet.Protos.TransactionConfidence.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<Protos.TransactionConfidence.Type>
- Enclosing class:
- Protos.TransactionConfidence
public static enum Protos.TransactionConfidence.Type extends java.lang.Enum<Protos.TransactionConfidence.Type> implements com.google.protobuf.Internal.EnumLite
Protobuf enumwallet.TransactionConfidence.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUILDINGIn best chain.DEADEither if overriding_transaction is present or transaction is dead coinbase.IN_CONFLICTThere is another transaction spending one of this transaction inputs.NOT_IN_BEST_CHAINDeprecated: equivalent to PENDING.PENDINGUnconfirmed and sitting in the networks memory pools, waiting to be included in the chain.UNKNOWNSee TransactionConfidence.java for a more thorough explanation of these types.
-
Field Summary
Fields Modifier and Type Field Description static intBUILDING_VALUEIn best chain.static intDEAD_VALUEEither if overriding_transaction is present or transaction is dead coinbase.static intIN_CONFLICT_VALUEThere is another transaction spending one of this transaction inputs.static intNOT_IN_BEST_CHAIN_VALUEDeprecated: equivalent to PENDING.static intPENDING_VALUEUnconfirmed and sitting in the networks memory pools, waiting to be included in the chain.static intUNKNOWN_VALUESee TransactionConfidence.java for a more thorough explanation of these types.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.TransactionConfidence.TypeforNumber(int value)intgetNumber()static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Type>internalGetValueMap()static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()static Protos.TransactionConfidence.TypevalueOf(int value)Deprecated.static Protos.TransactionConfidence.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Protos.TransactionConfidence.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Protos.TransactionConfidence.Type UNKNOWN
See TransactionConfidence.java for a more thorough explanation of these types.
UNKNOWN = 0;
-
BUILDING
public static final Protos.TransactionConfidence.Type BUILDING
In best chain. If and only if appeared_at_height is present.
BUILDING = 1;
-
PENDING
public static final Protos.TransactionConfidence.Type PENDING
Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
PENDING = 2;
-
NOT_IN_BEST_CHAIN
public static final Protos.TransactionConfidence.Type NOT_IN_BEST_CHAIN
Deprecated: equivalent to PENDING.
NOT_IN_BEST_CHAIN = 3;
-
DEAD
public static final Protos.TransactionConfidence.Type DEAD
Either if overriding_transaction is present or transaction is dead coinbase.
DEAD = 4;
-
IN_CONFLICT
public static final Protos.TransactionConfidence.Type IN_CONFLICT
There is another transaction spending one of this transaction inputs.
IN_CONFLICT = 5;
-
-
Field Detail
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
See TransactionConfidence.java for a more thorough explanation of these types.
UNKNOWN = 0;- See Also:
- Constant Field Values
-
BUILDING_VALUE
public static final int BUILDING_VALUE
In best chain. If and only if appeared_at_height is present.
BUILDING = 1;- See Also:
- Constant Field Values
-
PENDING_VALUE
public static final int PENDING_VALUE
Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
PENDING = 2;- See Also:
- Constant Field Values
-
NOT_IN_BEST_CHAIN_VALUE
public static final int NOT_IN_BEST_CHAIN_VALUE
Deprecated: equivalent to PENDING.
NOT_IN_BEST_CHAIN = 3;- See Also:
- Constant Field Values
-
DEAD_VALUE
public static final int DEAD_VALUE
Either if overriding_transaction is present or transaction is dead coinbase.
DEAD = 4;- See Also:
- Constant Field Values
-
IN_CONFLICT_VALUE
public static final int IN_CONFLICT_VALUE
There is another transaction spending one of this transaction inputs.
IN_CONFLICT = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.TransactionConfidence.Type[] 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.TransactionConfidence.Type c : Protos.TransactionConfidence.Type.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.TransactionConfidence.Type 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.TransactionConfidence.Type 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.TransactionConfidence.Type forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Type> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-