Package org.bitcoinj.core
Enum TransactionInput.ConnectionResult
- java.lang.Object
-
- java.lang.Enum<TransactionInput.ConnectionResult>
-
- org.bitcoinj.core.TransactionInput.ConnectionResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransactionInput.ConnectionResult>
- Enclosing class:
- TransactionInput
public static enum TransactionInput.ConnectionResult extends java.lang.Enum<TransactionInput.ConnectionResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_SPENT
NO_SUCH_TX
SUCCESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionInput.ConnectionResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransactionInput.ConnectionResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_SUCH_TX
public static final TransactionInput.ConnectionResult NO_SUCH_TX
-
ALREADY_SPENT
public static final TransactionInput.ConnectionResult ALREADY_SPENT
-
SUCCESS
public static final TransactionInput.ConnectionResult SUCCESS
-
-
Method Detail
-
values
public static TransactionInput.ConnectionResult[] 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 (TransactionInput.ConnectionResult c : TransactionInput.ConnectionResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionInput.ConnectionResult 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
-
-