|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Protos.Transaction.Pool>
org.bitcoinj.wallet.Protos.Transaction.Pool
public static enum Protos.Transaction.Pool
Protobuf enum wallet.Transaction.Pool
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.
| Enum Constant Summary | |
|---|---|
DEAD
DEAD = 10; |
|
INACTIVE
INACTIVE = 2; |
|
PENDING
PENDING = 16; |
|
PENDING_INACTIVE
PENDING_INACTIVE = 18; |
|
SPENT
SPENT = 5; |
|
UNSPENT
UNSPENT = 4; |
|
| Field Summary | |
|---|---|
static int |
DEAD_VALUE
DEAD = 10; |
static int |
INACTIVE_VALUE
INACTIVE = 2; |
static int |
PENDING_INACTIVE_VALUE
PENDING_INACTIVE = 18; |
static int |
PENDING_VALUE
PENDING = 16; |
static int |
SPENT_VALUE
SPENT = 5; |
static int |
UNSPENT_VALUE
UNSPENT = 4; |
| Method Summary | |
|---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor()
|
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType()
|
int |
getNumber()
|
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor()
|
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> |
internalGetValueMap()
|
static Protos.Transaction.Pool |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
|
static Protos.Transaction.Pool |
valueOf(int value)
|
static Protos.Transaction.Pool |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Protos.Transaction.Pool UNSPENT
UNSPENT = 4;
In best chain, not all outputs spent
public static final Protos.Transaction.Pool SPENT
SPENT = 5;
In best chain, all outputs spent
public static final Protos.Transaction.Pool INACTIVE
INACTIVE = 2;
In non-best chain, not our transaction
public static final Protos.Transaction.Pool DEAD
DEAD = 10;
Double-spent by a transaction in the best chain
public static final Protos.Transaction.Pool PENDING
PENDING = 16;
Our transaction, not in any chain
public static final Protos.Transaction.Pool PENDING_INACTIVE
PENDING_INACTIVE = 18;
In non-best chain, our transaction
| Field Detail |
|---|
public static final int UNSPENT_VALUE
UNSPENT = 4;
In best chain, not all outputs spent
public static final int SPENT_VALUE
SPENT = 5;
In best chain, all outputs spent
public static final int INACTIVE_VALUE
INACTIVE = 2;
In non-best chain, not our transaction
public static final int DEAD_VALUE
DEAD = 10;
Double-spent by a transaction in the best chain
public static final int PENDING_VALUE
PENDING = 16;
Our transaction, not in any chain
public static final int PENDING_INACTIVE_VALUE
PENDING_INACTIVE = 18;
In non-best chain, our transaction
| Method Detail |
|---|
public static Protos.Transaction.Pool[] values()
for (Protos.Transaction.Pool c : Protos.Transaction.Pool.values()) System.out.println(c);
public static Protos.Transaction.Pool valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnumpublic static Protos.Transaction.Pool valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Transaction.Pool valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||