public enum Sns extends Enum<Sns>
| Enum Constant and Description |
|---|
FACEBOOK
"facebook" (1). |
| Modifier and Type | Method and Description |
|---|---|
static Sns |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static Sns |
parse(String sns)
Convert
String to Sns. |
static Sns[] |
toArray(int bits) |
static int |
toBits(EnumSet<Sns> set) |
static EnumSet<Sns> |
toSet(int bits) |
static EnumSet<Sns> |
toSet(Sns[] array) |
String |
toString() |
static Sns |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sns[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sns FACEBOOK
"facebook" (1).public static Sns[] values()
for (Sns c : Sns.values()) System.out.println(c);
public static Sns 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 short getValue()
public static Sns getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static Sns parse(String sns)
String to Sns.sns - An SNS. For example, "facebook".Sns instance, or null.public static Sns[] toArray(int bits)
Copyright © 2017. All rights reserved.