public enum PlayType extends Enum<PlayType>
表 59 放映参数属性
| 限定符和类型 | 方法和说明 |
|---|---|
static PlayType |
getInstance(String type)
根据字符串类型获取 实例
|
static PlayType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static PlayType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PlayType Play
public static final PlayType Stop
public static final PlayType Pause
public static final PlayType Resume
public static PlayType[] values()
for (PlayType c : PlayType.values()) System.out.println(c);
public static PlayType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.