Package org.bitcoinj.wallet
Enum Protos.Transaction.Pool
- java.lang.Object
-
- java.lang.Enum<Protos.Transaction.Pool>
-
- org.bitcoinj.wallet.Protos.Transaction.Pool
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,java.io.Serializable
,java.lang.Comparable<Protos.Transaction.Pool>
- Enclosing class:
- Protos.Transaction
public static enum Protos.Transaction.Pool extends java.lang.Enum<Protos.Transaction.Pool> implements com.google.protobuf.Internal.EnumLite
This is a bitfield oriented enum, with the following bits: bit 0 - spent bit 1 - appears in alt chain bit 2 - appears in best chain bit 3 - double-spent bit 4 - pending (we would like the tx to go into the best chain) Not all combinations are interesting, just the ones actually used in the enum.
Protobuf enumwallet.Transaction.Pool
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEAD
Double-spent by a transaction in the best chainINACTIVE
In non-best chain, not our transactionPENDING
Our transaction, not in any chainPENDING_INACTIVE
In non-best chain, our transactionSPENT
In best chain, all outputs spentUNSPENT
In best chain, not all outputs spent
-
Field Summary
Fields Modifier and Type Field Description static int
DEAD_VALUE
Double-spent by a transaction in the best chainstatic int
INACTIVE_VALUE
In non-best chain, not our transactionstatic int
PENDING_INACTIVE_VALUE
In non-best chain, our transactionstatic int
PENDING_VALUE
Our transaction, not in any chainstatic int
SPENT_VALUE
In best chain, all outputs spentstatic int
UNSPENT_VALUE
In best chain, not all outputs spent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.Transaction.Pool
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.Transaction.Pool
valueOf(int value)
Deprecated.static Protos.Transaction.Pool
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protos.Transaction.Pool[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPENT
public static final Protos.Transaction.Pool UNSPENT
In best chain, not all outputs spent
UNSPENT = 4;
-
SPENT
public static final Protos.Transaction.Pool SPENT
In best chain, all outputs spent
SPENT = 5;
-
INACTIVE
public static final Protos.Transaction.Pool INACTIVE
In non-best chain, not our transaction
INACTIVE = 2;
-
DEAD
public static final Protos.Transaction.Pool DEAD
Double-spent by a transaction in the best chain
DEAD = 10;
-
PENDING
public static final Protos.Transaction.Pool PENDING
Our transaction, not in any chain
PENDING = 16;
-
PENDING_INACTIVE
public static final Protos.Transaction.Pool PENDING_INACTIVE
In non-best chain, our transaction
PENDING_INACTIVE = 18;
-
-
Field Detail
-
UNSPENT_VALUE
public static final int UNSPENT_VALUE
In best chain, not all outputs spent
UNSPENT = 4;
- See Also:
- Constant Field Values
-
SPENT_VALUE
public static final int SPENT_VALUE
In best chain, all outputs spent
SPENT = 5;
- See Also:
- Constant Field Values
-
INACTIVE_VALUE
public static final int INACTIVE_VALUE
In non-best chain, not our transaction
INACTIVE = 2;
- See Also:
- Constant Field Values
-
DEAD_VALUE
public static final int DEAD_VALUE
Double-spent by a transaction in the best chain
DEAD = 10;
- See Also:
- Constant Field Values
-
PENDING_VALUE
public static final int PENDING_VALUE
Our transaction, not in any chain
PENDING = 16;
- See Also:
- Constant Field Values
-
PENDING_INACTIVE_VALUE
public static final int PENDING_INACTIVE_VALUE
In non-best chain, our transaction
PENDING_INACTIVE = 18;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.Transaction.Pool[] 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.Transaction.Pool c : Protos.Transaction.Pool.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.Transaction.Pool 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.Transaction.Pool 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.Transaction.Pool forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-