public enum FontSize extends Enum<FontSize>
Modifier and Type | Method and Description |
---|---|
static FontSize |
fromInt(int value)
Create a FontSize object.
|
static FontSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontSize NORMAL
public static final FontSize LARGE
public static final FontSize SMALL
public static FontSize[] values()
for (FontSize c : FontSize.values()) System.out.println(c);
public static FontSize 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 FontSize fromInt(int value)
value
- Integer value to be converted to a FontSize object.value
. If no
FontSize object has that value, null is returned.