public enum HairStyle extends Enum<HairStyle>
| Enum Constant and Description |
|---|
BALD |
CURLY_HAIR |
RED_HAIR |
WHITE_HAIR |
| Modifier and Type | Method and Description |
|---|---|
String |
getUnicode()
Gets the unicode of the hairstyle.
|
static boolean |
isHairStyleEmoji(String unicode)
Check if the given emoji contains a hairstyle element.
|
static String |
removeHairStyle(String unicode)
Removes the hairstyle element from the given emoji.
|
static HairStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HairStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HairStyle RED_HAIR
public static final HairStyle CURLY_HAIR
public static final HairStyle WHITE_HAIR
public static final HairStyle BALD
public static HairStyle[] values()
for (HairStyle c : HairStyle.values()) System.out.println(c);
public static HairStyle 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 getUnicode()
public static boolean isHairStyleEmoji(String unicode)
unicode - The unicode of the emoji.