public enum OrientationEnum extends Enum<OrientationEnum> implements NamedValueEnum<Integer>
Modifier and Type | Method and Description |
---|---|
static OrientationEnum |
getByName(String name) |
static OrientationEnum |
getByValue(Integer value) |
String |
getName() |
Integer |
getValue() |
static OrientationEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrientationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrientationEnum UP
public static final OrientationEnum LEFT
public static final OrientationEnum DOWN
public static final OrientationEnum RIGHT
public static OrientationEnum[] values()
for (OrientationEnum c : OrientationEnum.values()) System.out.println(c);
public static OrientationEnum 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 Integer getValue()
getValue
in interface NamedValueEnum<Integer>
public static OrientationEnum getByName(String name)
public static OrientationEnum getByValue(Integer value)
Copyright © 2016. All rights reserved.