public enum StrengthMeter extends Enum<StrengthMeter>
Enum Constant and Description |
---|
MEDIUM |
STRONG |
VERY_STRONG |
VERY_WEAK |
WEAK |
Modifier and Type | Method and Description |
---|---|
static StrengthMeter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrengthMeter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrengthMeter VERY_WEAK
public static final StrengthMeter WEAK
public static final StrengthMeter MEDIUM
public static final StrengthMeter STRONG
public static final StrengthMeter VERY_STRONG
public static StrengthMeter[] values()
for (StrengthMeter c : StrengthMeter.values()) System.out.println(c);
public static StrengthMeter 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 nullCopyright © 2020. All rights reserved.