Enum FileStatisticFormat
- java.lang.Object
-
- java.lang.Enum<FileStatisticFormat>
-
- li.pitschmann.knx.core.plugin.statistic.FileStatisticFormat
-
- All Implemented Interfaces:
Serializable,Comparable<FileStatisticFormat>
public enum FileStatisticFormat extends Enum<FileStatisticFormat>
Format forFileStatisticPluginJSON, TSV and TEXT are supported.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeader()StringgetTemplate()static FileStatisticFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static FileStatisticFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final FileStatisticFormat JSON
Statistic format should be in JSON format.
-
TSV
public static final FileStatisticFormat TSV
Statistic format should be in TSV format.
-
TEXT
public static final FileStatisticFormat TEXT
Statistic format should be in TEXT format
-
-
Method Detail
-
values
public static FileStatisticFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileStatisticFormat c : FileStatisticFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileStatisticFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getHeader
public String getHeader()
-
getTemplate
public String getTemplate()
-
-