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 BUILDING
In best chain.DEAD
Either if overriding_transaction is present or transaction is dead coinbase.IN_CONFLICT
There is another transaction spending one of this transaction inputs.NOT_IN_BEST_CHAIN
Deprecated: equivalent to PENDING.PENDING
Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.UNKNOWN
See TransactionConfidence.java for a more thorough explanation of these types.
-
Field Summary
Fields Modifier and Type Field Description static int
BUILDING_VALUE
In best chain.static int
DEAD_VALUE
Either if overriding_transaction is present or transaction is dead coinbase.static int
IN_CONFLICT_VALUE
There is another transaction spending one of this transaction inputs.static int
NOT_IN_BEST_CHAIN_VALUE
Deprecated: equivalent to PENDING.static int
PENDING_VALUE
Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.static int
UNKNOWN_VALUE
See 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.Type
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Type>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.TransactionConfidence.Type
valueOf(int value)
Deprecated.static Protos.TransactionConfidence.Type
valueOf(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:
getNumber
in 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()
-
-