public enum ConfigFileFormat extends Enum<ConfigFileFormat>
| Modifier and Type | Method and Description |
|---|---|
static ConfigFileFormat |
fromString(String value) |
String |
getValue() |
static boolean |
isPropertiesCompatible(ConfigFileFormat format) |
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 final ConfigFileFormat TXT
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)
public static boolean isPropertiesCompatible(ConfigFileFormat format)
Copyright © 2020 Ctrip, Inc.. All rights reserved.