Modifier and Type | Method and Description |
---|---|
static YogaUnit |
fromInt(int value) |
int |
intValue() |
static YogaUnit |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int intValue()
public static YogaUnit fromInt(int value)