public static enum Transaction.Type extends Enum<Transaction.Type>
Enum Constant and Description |
---|
CREDIT |
SALE |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static Transaction.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.Type CREDIT
public static final Transaction.Type SALE
public static final Transaction.Type UNRECOGNIZED
private final String name
public static Transaction.Type[] values()
for (Transaction.Type c : Transaction.Type.values()) System.out.println(c);
public static Transaction.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Transaction.Type>
Copyright © 2013-2020. All Rights Reserved.