public enum YogaUnit extends Enum<YogaUnit>
Modifier and Type | Method and Description |
---|---|
static YogaUnit |
fromInt(int value) |
int |
intValue() |
static YogaUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YogaUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YogaUnit UNDEFINED
public static final YogaUnit POINT
public static final YogaUnit PERCENT
public static final YogaUnit AUTO
public static YogaUnit[] values()
for (YogaUnit c : YogaUnit.values()) System.out.println(c);
public static YogaUnit 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 int intValue()
public static YogaUnit fromInt(int value)