public enum ConfigFormat extends java.lang.Enum<ConfigFormat>
| Enum Constant and Description |
|---|
JSON |
PROPERTIES |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExtension() |
static ConfigFormat |
parse(java.lang.String format)
Parse string format value to
ConfigFormat |
static ConfigFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConfigFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigFormat PROPERTIES
public static final ConfigFormat JSON
public static ConfigFormat[] values()
for (ConfigFormat c : ConfigFormat.values()) System.out.println(c);
public static ConfigFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ConfigFormat parse(java.lang.String format)
ConfigFormatformat - name of configuration formatjava.lang.IllegalArgumentException - when passed type is unknown.public java.lang.String getExtension()