public enum TradeSession extends Enum<TradeSession>
| 枚举常量和说明 |
|---|
AfterHours |
All |
OverNight |
PreMarket |
Regular |
public static final TradeSession PreMarket
public static final TradeSession Regular
public static final TradeSession AfterHours
public static final TradeSession OverNight
public static final TradeSession All
public static TradeSession[] values()
for (TradeSession c : TradeSession.values()) System.out.println(c);
public static TradeSession valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2024. All rights reserved.