public enum ConfigFileFormat extends Enum<ConfigFileFormat>
| Enum Constant and Description |
|---|
JSON |
Properties |
XML |
YAML |
YML |
| Modifier and Type | Method and Description |
|---|---|
static ConfigFileFormat |
fromString(String value) |
String |
getValue() |
static boolean |
isValidFormat(String value) |
static ConfigFileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigFileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigFileFormat Properties
public static final ConfigFileFormat XML
public static final ConfigFileFormat JSON
public static final ConfigFileFormat YML
public static final ConfigFileFormat YAML
public static ConfigFileFormat[] values()
for (ConfigFileFormat c : ConfigFileFormat.values()) System.out.println(c);
public static ConfigFileFormat 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 getValue()
public static ConfigFileFormat fromString(String value)
public static boolean isValidFormat(String value)
Copyright © 2018 Ctrip, Inc.. All rights reserved.