Modifier and Type | Method and Description |
---|---|
static Provider |
fromString(java.lang.String providerName) |
static Provider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Provider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Provider FACEBOOK
public static final Provider TWITTER
public static final Provider LINKEDIN
public static final Provider GPLUS
public static Provider[] values()
for (Provider c : Provider.values()) System.out.println(c);
public static Provider valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Provider fromString(java.lang.String providerName) throws java.lang.EnumConstantNotPresentException
java.lang.EnumConstantNotPresentException