StocksMonitor 1.5.0

hirondelle.stocks.portfolio
Enum CurrentPortfolio.NeedsSave

Object
  extended by Enum<CurrentPortfolio.NeedsSave>
      extended by 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.


Enum Constant Summary
FALSE
           
TRUE
           
 
Method Summary
(package private)  boolean getValue()
           
static CurrentPortfolio.NeedsSave valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CurrentPortfolio.NeedsSave[] 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, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TRUE

public static final CurrentPortfolio.NeedsSave TRUE

FALSE

public static final CurrentPortfolio.NeedsSave FALSE
Method Detail

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()

StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53