public enum PropertiesFormat extends Enum<PropertiesFormat>
Enum Constant and Description |
---|
PROPERTIES |
XML |
Modifier and Type | Method and Description |
---|---|
String |
getExtension() |
static PropertiesFormat |
getFormat(File file) |
static PropertiesFormat |
getFormat(String fileName) |
static PropertiesFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertiesFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertiesFormat PROPERTIES
public static final PropertiesFormat XML
public static PropertiesFormat[] values()
for (PropertiesFormat c : PropertiesFormat.values()) System.out.println(c);
public static PropertiesFormat 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 null@Nonnull public static PropertiesFormat getFormat(@Nonnull File file)
@Nonnull public static PropertiesFormat getFormat(@Nonnull String fileName)
Copyright © 2020. All Rights Reserved.