public enum BTCTradeSessionFactory extends Enum<BTCTradeSessionFactory>
BTCTradeSession
factory to ensure the polling service instances, which using the same API key, share the same secret data and nonce.Enum Constant and Description |
---|
INSTANCE
Enum Singleton Pattern.
|
Modifier and Type | Method and Description |
---|---|
BTCTradeSession |
getSession(Exchange exchange) |
static BTCTradeSessionFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BTCTradeSessionFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BTCTradeSessionFactory INSTANCE
public static BTCTradeSessionFactory[] values()
for (BTCTradeSessionFactory c : BTCTradeSessionFactory.values()) System.out.println(c);
public static BTCTradeSessionFactory 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 BTCTradeSession getSession(Exchange exchange)
exchange
- Copyright © 2012–2016 Xeiam, LLC. All rights reserved.