public enum Percent extends Enum<Percent>
Enum Constant and Description |
---|
PERCENT_TOP |
PERCENT10 |
PERCENT100 |
PERCENT20 |
PERCENT50 |
PERCENT80 |
Modifier and Type | Method and Description |
---|---|
static Percent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Percent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Percent PERCENT10
public static final Percent PERCENT20
public static final Percent PERCENT50
public static final Percent PERCENT80
public static final Percent PERCENT100
public static final Percent PERCENT_TOP
public static Percent[] values()
for (Percent c : Percent.values()) System.out.println(c);
public static Percent 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 © 2014–2015. All rights reserved.