org.fraid.projects.PredictionMarkets
Enum MarketManager.Action
java.lang.Object
java.lang.Enum<MarketManager.Action>
org.fraid.projects.PredictionMarkets.MarketManager.Action
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MarketManager.Action>
- Enclosing class:
- MarketManager
public static enum MarketManager.Action
- extends java.lang.Enum<MarketManager.Action>
Method Summary |
static MarketManager.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MarketManager.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
BUY
public static final MarketManager.Action BUY
SELL
public static final MarketManager.Action SELL
NONE
public static final MarketManager.Action NONE
values
public static final MarketManager.Action[] 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(MarketManager.Action c : MarketManager.Action.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MarketManager.Action valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.