public enum ApplicationType extends Enum<ApplicationType>
application_type
.Enum Constant and Description |
---|
NATIVE
"native" (2). |
WEB
"web" (1). |
Modifier and Type | Method and Description |
---|---|
static ApplicationType |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static ApplicationType |
parse(String applicationType)
Convert
String to ApplicationType . |
static ApplicationType[] |
toArray(int bits) |
static int |
toBits(EnumSet<ApplicationType> set) |
static EnumSet<ApplicationType> |
toSet(ApplicationType[] array) |
static EnumSet<ApplicationType> |
toSet(int bits) |
String |
toString() |
static ApplicationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationType WEB
"web"
(1).public static final ApplicationType NATIVE
"native"
(2).public static ApplicationType[] values()
for (ApplicationType c : ApplicationType.values()) System.out.println(c);
public static ApplicationType 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 short getValue()
public String toString()
toString
in class Enum<ApplicationType>
public static ApplicationType getByValue(short value)
value
- The integer representation of the instance to find.null
if not found.public static ApplicationType parse(String applicationType)
String
to ApplicationType
.applicationType
- An application type. For example, "web"
.ApplicationType
instance, or null
.public static int toBits(EnumSet<ApplicationType> set)
public static ApplicationType[] toArray(int bits)
public static EnumSet<ApplicationType> toSet(int bits)
public static EnumSet<ApplicationType> toSet(ApplicationType[] array)
Copyright © 2023. All rights reserved.