public enum QuoteField extends Enum<QuoteField>
Quote
class.
Advantages to using this class as part of a table model :
Enum Constant and Description |
---|
Change |
PercentChange |
PercentProfit |
Price |
Profit |
Stock |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Return a text representation of the QuoteField.
|
static QuoteField |
valueFrom(String aText)
Parse text into a QuoteField.
|
static QuoteField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuoteField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuoteField Stock
public static final QuoteField Price
public static final QuoteField Change
public static final QuoteField PercentChange
public static final QuoteField Profit
public static final QuoteField PercentProfit
public static QuoteField[] values()
for (QuoteField c : QuoteField.values()) System.out.println(c);
public static QuoteField 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<QuoteField>
public static QuoteField valueFrom(String aText)
The text is matched according to the value of toString()
,
not from the symbolic name of the enumerated item.
Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58