hirondelle.stocks.portfolio
Enum CurrentPortfolio.NeedsSave
Object
Enum<CurrentPortfolio.NeedsSave>
CurrentPortfolio.NeedsSave
- All Implemented Interfaces:
- Serializable, Comparable<CurrentPortfolio.NeedsSave>
- Enclosing class:
- CurrentPortfolio
public static enum CurrentPortfolio.NeedsSave
- extends Enum<CurrentPortfolio.NeedsSave>
Enumeration for the two states of aNeedsSave passed to the constructor.
Use of an enumeration forces the caller to create a constructor call which has
high clarity.
TRUE
public static final CurrentPortfolio.NeedsSave TRUE
FALSE
public static final CurrentPortfolio.NeedsSave FALSE
values
public static final CurrentPortfolio.NeedsSave[] 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(CurrentPortfolio.NeedsSave c : CurrentPortfolio.NeedsSave.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CurrentPortfolio.NeedsSave 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
getValue
boolean getValue()
Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53