public enum ProviderType extends Enum<ProviderType>
| Modifier and Type | Method and Description |
|---|---|
static Optional<ProviderType> |
get(String key) |
String |
getKey() |
static ProviderType |
getOrThrow(String key) |
static ProviderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProviderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProviderType GOOGLE
public static final ProviderType MICROSOFT
public static final ProviderType GENERIC
public final String key
public static ProviderType[] values()
for (ProviderType c : ProviderType.values()) System.out.println(c);
public static ProviderType 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 static Optional<ProviderType> get(String key)
public static ProviderType getOrThrow(String key)
public String getKey()
Copyright © 2020 Atlassian. All rights reserved.