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 ApplicationTypegetByValue(short value)Find an instance of this enum by a value.shortgetValue()Get the integer representation of this enum instance.static ApplicationTypeparse(String applicationType)ConvertStringtoApplicationType.static ApplicationType[]toArray(int bits)static inttoBits(EnumSet<ApplicationType> set)static EnumSet<ApplicationType>toSet(int bits)static EnumSet<ApplicationType>toSet(ApplicationType[] array)StringtoString()static ApplicationTypevalueOf(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:
toStringin 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
nullif not found.
-
parse
public static ApplicationType parse(String applicationType)
ConvertStringtoApplicationType.- Parameters:
applicationType- An application type. For example,"web".- Returns:
ApplicationTypeinstance, 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)
-
-