Package com.authlete.common.types
Enum ApplicationType
- java.lang.Object
-
- java.lang.Enum<ApplicationType>
-
- com.authlete.common.types.ApplicationType
-
- All Implemented Interfaces:
Serializable
,Comparable<ApplicationType>
public enum ApplicationType extends Enum<ApplicationType>
Values forapplication_type
.- Author:
- Takahiko Kawasaki
- See Also:
- OpenID Connect Dynamic Client Registration 1.0, 2. Client Metadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
ConvertString
toApplicationType
.static ApplicationType[]
toArray(int bits)
static int
toBits(EnumSet<ApplicationType> set)
static EnumSet<ApplicationType>
toSet(int bits)
static EnumSet<ApplicationType>
toSet(ApplicationType[] array)
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.
-
-
-
Enum Constant Detail
-
WEB
public static final ApplicationType WEB
"web"
(1).
-
NATIVE
public static final ApplicationType NATIVE
"native"
(2).
-
-
Method Detail
-
values
public static ApplicationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApplicationType c : ApplicationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApplicationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public short getValue()
Get the integer representation of this enum instance.
-
toString
public String toString()
- Overrides:
toString
in classEnum<ApplicationType>
-
getByValue
public static ApplicationType getByValue(short value)
Find an instance of this enum by a value.- Parameters:
value
- The integer representation of the instance to find.- Returns:
- An instance of this enum, or
null
if not found.
-
parse
public static ApplicationType parse(String applicationType)
ConvertString
toApplicationType
.- Parameters:
applicationType
- An application type. For example,"web"
.- Returns:
ApplicationType
instance, ornull
.
-
toBits
public static int toBits(EnumSet<ApplicationType> set)
-
toArray
public static ApplicationType[] toArray(int bits)
-
toSet
public static EnumSet<ApplicationType> toSet(int bits)
-
toSet
public static EnumSet<ApplicationType> toSet(ApplicationType[] array)
-
-