edu.columbia.cs.cs1007.banking
Enum Transaction.TRANSACTION_TYPE

java.lang.Object
  extended by java.lang.Enum<Transaction.TRANSACTION_TYPE>
      extended by edu.columbia.cs.cs1007.banking.Transaction.TRANSACTION_TYPE
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Transaction.TRANSACTION_TYPE>
Enclosing class:
Transaction

public static enum Transaction.TRANSACTION_TYPE
extends java.lang.Enum<Transaction.TRANSACTION_TYPE>


Enum Constant Summary
DEPOSIT
           
INTEREST
           
WITHDRAWAL
           
 
Method Summary
static Transaction.TRANSACTION_TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Transaction.TRANSACTION_TYPE[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEPOSIT

public static final Transaction.TRANSACTION_TYPE DEPOSIT

WITHDRAWAL

public static final Transaction.TRANSACTION_TYPE WITHDRAWAL

INTEREST

public static final Transaction.TRANSACTION_TYPE INTEREST
Method Detail

values

public static Transaction.TRANSACTION_TYPE[] 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 (Transaction.TRANSACTION_TYPE c : Transaction.TRANSACTION_TYPE.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Transaction.TRANSACTION_TYPE 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 name
java.lang.NullPointerException - if the argument is null