public enum ChargeType extends Enum<ChargeType>
| Enum Constant and Description |
|---|
AC
Alternating Current.
|
DC
Direct Current.
|
UNKNOWN
Charge type is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static ChargeType |
findOrDefault(String name) |
String |
getName() |
static ChargeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChargeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChargeType AC
public static final ChargeType DC
public static final ChargeType UNKNOWN
public static ChargeType[] values()
for (ChargeType c : ChargeType.values()) System.out.println(c);
public static ChargeType 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 ChargeType findOrDefault(String name)
public String getName()
Copyright © 2024. All rights reserved.