public static enum Normal.Gender extends Enum<Normal.Gender>
| Enum Constant and Description |
|---|
FEMALE |
MALE
MALE/FAMALE为正常值,通过
getGender(String)
方法获取真实的性别UNKNOWN为容错值,部分平台不会返回用户性别,
为了方便统一,使用UNKNOWN标记所有未知或不可测的用户性别信息 |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static Normal.Gender |
getGender(String code) |
static Normal.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Normal.Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Normal.Gender MALE
getGender(String)
方法获取真实的性别UNKNOWN为容错值,部分平台不会返回用户性别,
为了方便统一,使用UNKNOWN标记所有未知或不可测的用户性别信息public static final Normal.Gender FEMALE
public static final Normal.Gender UNKNOWN
public static Normal.Gender[] values()
for (Normal.Gender c : Normal.Gender.values()) System.out.println(c);
public static Normal.Gender 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 Normal.Gender getGender(String code)
Copyright © 2019. All rights reserved.