public static enum ExternalAccountConnection.UserServiceType extends java.lang.Enum<ExternalAccountConnection.UserServiceType>
Enum Constant and Description |
---|
FACEBOOK
Service type for Facebook
|
GOOGLE
Service type for Google
|
TWITTER
Service type Twitter
|
Modifier and Type | Method and Description |
---|---|
static ExternalAccountConnection.UserServiceType |
fromInt(int value) |
static ExternalAccountConnection.UserServiceType |
fromUserServiceTypeString(java.lang.String value) |
static java.util.EnumSet<ExternalAccountConnection.UserServiceType> |
fromUserServiceTypeStrings(java.util.Collection<java.lang.String> values) |
int |
toInt() |
static int[] |
toInt(java.util.EnumSet<ExternalAccountConnection.UserServiceType> types) |
java.lang.String |
toUserServiceTypeString() |
static ExternalAccountConnection.UserServiceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExternalAccountConnection.UserServiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExternalAccountConnection.UserServiceType GOOGLE
public static final ExternalAccountConnection.UserServiceType FACEBOOK
public static final ExternalAccountConnection.UserServiceType TWITTER
public static ExternalAccountConnection.UserServiceType[] values()
for (ExternalAccountConnection.UserServiceType c : ExternalAccountConnection.UserServiceType.values()) System.out.println(c);
public static ExternalAccountConnection.UserServiceType 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 int toInt()
public static ExternalAccountConnection.UserServiceType fromInt(int value) throws java.lang.IllegalArgumentException
value
- java.lang.IllegalArgumentException
- on bad valuepublic static int[] toInt(java.util.EnumSet<ExternalAccountConnection.UserServiceType> types)
types
- public java.lang.String toUserServiceTypeString()
public static ExternalAccountConnection.UserServiceType fromUserServiceTypeString(java.lang.String value) throws java.lang.IllegalArgumentException
value
- java.lang.IllegalArgumentException
- on bad valuepublic static java.util.EnumSet<ExternalAccountConnection.UserServiceType> fromUserServiceTypeStrings(java.util.Collection<java.lang.String> values) throws java.lang.IllegalArgumentException
values
- java.lang.IllegalArgumentException
- on bad valueCopyright © 2015 Tampere University of Technology, Pori Department.