public enum Fitzpatrick extends Enum<Fitzpatrick>
| Enum Constant and Description |
|---|
DARK_SKIN |
LIGHT_SKIN |
MEDIUM_DARK_SKIN |
MEDIUM_LIGHT_SKIN |
MEDIUM_SKIN |
| Modifier and Type | Method and Description |
|---|---|
String |
getUnicode()
Gets the unicode of the fitzpatrick modifier.
|
static boolean |
isFitzpatrickEmoji(String unicode)
Check if the given emoji contains a fitzpatrick modifier.
|
static String |
removeFitzpatrick(String unicode)
Removes the fitzpatrick modifier from the given emoji.
|
static Fitzpatrick |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fitzpatrick[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fitzpatrick LIGHT_SKIN
public static final Fitzpatrick MEDIUM_LIGHT_SKIN
public static final Fitzpatrick MEDIUM_SKIN
public static final Fitzpatrick MEDIUM_DARK_SKIN
public static final Fitzpatrick DARK_SKIN
public static Fitzpatrick[] values()
for (Fitzpatrick c : Fitzpatrick.values()) System.out.println(c);
public static Fitzpatrick 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 isFitzpatrickEmoji(String unicode)
unicode - The unicode of the emoji.