org.cocome.tradingsystem.external
Enum Debit
java.lang.Object
java.lang.Enum<Debit>
org.cocome.tradingsystem.external.Debit
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Debit>
public enum Debit
- extends java.lang.Enum<Debit>
Description of the possible return values of the debit operation at the Bank
interface
- Author:
- Yannick Welsch
Method Summary |
static Debit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Debit[] |
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 |
OK
public static final Debit OK
NOT_ENOUGH_MONEY
public static final Debit NOT_ENOUGH_MONEY
TRANSACTION_ID_NOT_VALID
public static final Debit TRANSACTION_ID_NOT_VALID
values
public static Debit[] 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 (Debit c : Debit.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Debit 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