public enum ConfigType extends Enum<ConfigType>
| 枚举常量和说明 |
|---|
HTML
config type is "html".
|
JSON
config type is "json".
|
PROPERTIES
config type is "properties".
|
TEXT
config type is "text".
|
XML
config type is "xml".
|
YAML
config type is "yaml".
|
public static final ConfigType PROPERTIES
public static final ConfigType XML
public static final ConfigType JSON
public static final ConfigType TEXT
public static final ConfigType HTML
public static final ConfigType YAML
public static ConfigType[] values()
for (ConfigType c : ConfigType.values()) System.out.println(c);
public static ConfigType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getType()
Copyright © 2018–2020 Alibaba Group. All rights reserved.