Package com.github.kaklakariada.fritzbox
Enum EnergyStatisticsService.EnergyStatsTimeRange
- java.lang.Object
-
- java.lang.Enum<EnergyStatisticsService.EnergyStatsTimeRange>
-
- com.github.kaklakariada.fritzbox.EnergyStatisticsService.EnergyStatsTimeRange
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EnergyStatisticsService.EnergyStatsTimeRange>
- Enclosing class:
- EnergyStatisticsService
public static enum EnergyStatisticsService.EnergyStatsTimeRange extends java.lang.Enum<EnergyStatisticsService.EnergyStatsTimeRange>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnergyStatisticsService.EnergyStatsTimeRangevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EnergyStatisticsService.EnergyStatsTimeRange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEN_MINUTES
public static final EnergyStatisticsService.EnergyStatsTimeRange TEN_MINUTES
-
ONE_HOUR
public static final EnergyStatisticsService.EnergyStatsTimeRange ONE_HOUR
-
ONE_DAY
public static final EnergyStatisticsService.EnergyStatsTimeRange ONE_DAY
-
ONE_WEEK
public static final EnergyStatisticsService.EnergyStatsTimeRange ONE_WEEK
-
ONE_MONTH
public static final EnergyStatisticsService.EnergyStatsTimeRange ONE_MONTH
-
ONE_YEAR
public static final EnergyStatisticsService.EnergyStatsTimeRange ONE_YEAR
-
-
Method Detail
-
values
public static EnergyStatisticsService.EnergyStatsTimeRange[] 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 (EnergyStatisticsService.EnergyStatsTimeRange c : EnergyStatisticsService.EnergyStatsTimeRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnergyStatisticsService.EnergyStatsTimeRange valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-