Serializable, Comparable<GrantType>, org.refcodes.mixin.NameAccessorpublic enum GrantType extends Enum<GrantType> implements org.refcodes.mixin.NameAccessor
| Enum Constant | Description |
|---|---|
PASSWORD |
|
REFRESH_TOKEN |
| Modifier and Type | Method | Description |
|---|---|---|
static GrantType |
fromName(String aName) |
Returns that
GrantType represented by the given name. |
String |
getName() |
Gets the name.
|
static GrantType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static GrantType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrantType PASSWORD
public static final GrantType REFRESH_TOKEN
public static GrantType[] values()
for (GrantType c : GrantType.values()) System.out.println(c);
public static GrantType 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 String getName()
getName in interface org.refcodes.mixin.NameAccessorCopyright © 2018. All rights reserved.