Package com.authlete.common.types
Enum ServiceProfile
- java.lang.Object
-
- java.lang.Enum<ServiceProfile>
-
- com.authlete.common.types.ServiceProfile
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceProfile>
public enum ServiceProfile extends Enum<ServiceProfile>
Service profile.- Since:
- 2.12
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAPIOPEN_BANKING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceProfilegetByValue(short value)Find an instance of this enum by a value.shortgetValue()Get the integer representation of this enum instance.static ServiceProfileparse(String serviceProfile)ConvertStringtoServiceProfile.static ServiceProfile[]toArray(int bits)static inttoBits(EnumSet<ServiceProfile> set)static EnumSet<ServiceProfile>toSet(int bits)static EnumSet<ServiceProfile>toSet(ServiceProfile[] array)StringtoString()static ServiceProfilevalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceProfile[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAPI
public static final ServiceProfile FAPI
Financial-grade API."fapi"(1)
-
OPEN_BANKING
public static final ServiceProfile OPEN_BANKING
Open Banking."openbanking"(2)- Since:
- 2.25
-
-
Method Detail
-
values
public static ServiceProfile[] 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 (ServiceProfile c : ServiceProfile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceProfile 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<ServiceProfile>
-
getByValue
public static ServiceProfile 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 ServiceProfile parse(String serviceProfile)
ConvertStringtoServiceProfile.- Parameters:
serviceProfile- Service profile. For example,"fapi".- Returns:
ServiceProfileinstance, ornull.
-
toBits
public static int toBits(EnumSet<ServiceProfile> set)
-
toArray
public static ServiceProfile[] toArray(int bits)
-
toSet
public static EnumSet<ServiceProfile> toSet(int bits)
-
toSet
public static EnumSet<ServiceProfile> toSet(ServiceProfile[] array)
-
-