public enum ChargingMode extends Enum<ChargingMode>
Enum Constant and Description |
---|
CHARGING_MODE_CU |
CHARGING_MODE_CU_PREPAID |
CHARGING_MODE_SQL |
Modifier and Type | Method and Description |
---|---|
static ChargingMode |
fromValue(int value) |
String |
getName() |
int |
getValue() |
static ChargingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChargingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChargingMode CHARGING_MODE_SQL
public static final ChargingMode CHARGING_MODE_CU
public static final ChargingMode CHARGING_MODE_CU_PREPAID
public static ChargingMode[] values()
for (ChargingMode c : ChargingMode.values()) System.out.println(c);
public static ChargingMode 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 String getName()
public int getValue()
public static ChargingMode fromValue(int value)
Copyright © 2023. All rights reserved.