|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
ObjectEnum<QuoteField>
QuoteField
public enum QuoteField
Enumeration for the fields of the
Quote class.
Advantages to using this class as part of a table model :
| Enum Constant Summary | |
|---|---|
Change
|
|
PercentChange
|
|
PercentProfit
|
|
Price
|
|
Profit
|
|
Stock
|
|
| Method Summary | |
|---|---|
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're declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
public static final 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 namepublic 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.
|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||