public enum TradeDirection extends Enum<TradeDirection>
| Modifier and Type | Method and Description |
|---|---|
static TradeDirection |
lookup(String name) |
String |
toString() |
static TradeDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TradeDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TradeDirection BUY
public static final TradeDirection SELL
public static TradeDirection[] values()
for (TradeDirection c : TradeDirection.values()) System.out.println(c);
public static TradeDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<TradeDirection>public static TradeDirection lookup(String name)
Copyright © 2021. All rights reserved.