StocksMonitor 1.5.0

hirondelle.stocks.table
Enum QuoteField

Object
  extended by Enum<QuoteField>
      extended by QuoteField
All Implemented Interfaces:
Serializable, Comparable<QuoteField>

public enum QuoteField
extends 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

Stock

public static final QuoteField Stock

Price

public static final QuoteField Price

Change

public static final QuoteField Change

PercentChange

public static final QuoteField PercentChange

Profit

public static final QuoteField Profit

PercentProfit

public static final QuoteField PercentProfit
Method Detail

values

public static final QuoteField[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(QuoteField c : QuoteField.values())
        System.out.println(c);

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

valueOf

public static QuoteField valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Return a text representation of the QuoteField. Return values : Stock, Price, Change, %Change, Profit, %Profit.

Overrides:
toString in class Enum<QuoteField>
Returns:
value contains only letters, and possibly a percent sign.

valueFrom

public static QuoteField valueFrom(String aText)
Parse text into a QuoteField.

The text is matched according to the value of toString(), not from the symbolic name of the enumerated item.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53