com.google.bitcoin.core
Enum TransactionInput.ConnectionResult

java.lang.Object
  extended by java.lang.Enum<TransactionInput.ConnectionResult>
      extended by com.google.bitcoin.core.TransactionInput.ConnectionResult
All Implemented Interfaces:
Serializable, Comparable<TransactionInput.ConnectionResult>
Enclosing class:
TransactionInput

public static enum TransactionInput.ConnectionResult
extends Enum<TransactionInput.ConnectionResult>


Enum Constant Summary
ALREADY_SPENT
           
NO_SUCH_TX
           
SUCCESS
           
 
Method Summary
static TransactionInput.ConnectionResult valueOf(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.
 
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

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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014. All rights reserved.