public enum OrientationEnum extends Enum<OrientationEnum> implements JREnum
Enum Constant and Description |
---|
LANDSCAPE
Specifies a landscape orientation.
|
PORTRAIT
Specifies a portrait orientation.
|
Modifier and Type | Method and Description |
---|---|
static OrientationEnum |
getByName(String name) |
static OrientationEnum |
getByValue(byte value)
Deprecated.
Used only by deprecated serialized fields.
|
static OrientationEnum |
getByValue(Byte value)
Deprecated.
Used only by deprecated serialized fields.
|
String |
getName() |
byte |
getValue()
Deprecated.
Used only by deprecated serialized fields.
|
Byte |
getValueByte()
Deprecated.
Used only by deprecated serialized fields.
|
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 PORTRAIT
public static final OrientationEnum LANDSCAPE
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 Byte getValueByte()
getValueByte
in interface JREnum
public final byte getValue()
public static OrientationEnum getByName(String name)
public static OrientationEnum getByValue(Byte value)
public static OrientationEnum getByValue(byte value)
Copyright © 2016. All rights reserved.