public enum ConsumptionPeriod extends Enum<ConsumptionPeriod>
| Enum Constant and Description |
|---|
ANUALLY
resets anually
|
DAILY
reset daily
|
MONTHLY
resets monthly
|
WEEKLY
resets weekly
|
| Modifier and Type | Method and Description |
|---|---|
static ConsumptionPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumptionPeriod |
valueOfType(String period)
Get value of consumption period.
|
static ConsumptionPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="daily") public static final ConsumptionPeriod DAILY
@SerializedName(value="weekly") public static final ConsumptionPeriod WEEKLY
@SerializedName(value="monthly") public static final ConsumptionPeriod MONTHLY
@SerializedName(value="annually") public static final ConsumptionPeriod ANUALLY
public static ConsumptionPeriod[] values()
for (ConsumptionPeriod c : ConsumptionPeriod.values()) System.out.println(c);
public static ConsumptionPeriod 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 static ConsumptionPeriod valueOfType(String period)
period - period of consumption reset ("weekly", "monthly"...)Copyright © 2024 Cense Data Inc.. All rights reserved.