public static enum TransactionConfidence.Listener.ChangeReason extends java.lang.Enum<TransactionConfidence.Listener.ChangeReason>
Enum Constant and Description |
---|
DEPTH
Occurs when a transaction that is in the best known block chain gets buried by another block.
|
SEEN_PEERS
Occurs when a pending transaction (not in the chain) was announced by another connected peers.
|
TYPE
Occurs when the type returned by
TransactionConfidence.getConfidenceType()
has changed. |
Modifier and Type | Method and Description |
---|---|
static TransactionConfidence.Listener.ChangeReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionConfidence.Listener.ChangeReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionConfidence.Listener.ChangeReason TYPE
TransactionConfidence.getConfidenceType()
has changed. For example, if a PENDING transaction changes to BUILDING or DEAD, then this reason will
be given. It's a high level summary.public static final TransactionConfidence.Listener.ChangeReason DEPTH
public static final TransactionConfidence.Listener.ChangeReason SEEN_PEERS
public static TransactionConfidence.Listener.ChangeReason[] values()
for (TransactionConfidence.Listener.ChangeReason c : TransactionConfidence.Listener.ChangeReason.values()) System.out.println(c);
public static TransactionConfidence.Listener.ChangeReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null