- All Implemented Interfaces:
Serializable,Comparable<Fitzpatrick>,Constable
The Fitzpatrick enum represents skin tone modifiers in the Fitzpatrick scale,
often used in conjunction with emojis to provide a range of skin tone
variations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the dark skin tone modifier in the Fitzpatrick scale.Represents the light skin tone modifier in the Fitzpatrick scale.Represents the medium dark skin tone modifier in the Fitzpatrick scale.Represents the medium light skin tone modifier in the Fitzpatrick scale.Represents the medium skin tone modifier in the Fitzpatrick scale. -
Method Summary
Modifier and TypeMethodDescriptionGets the Unicode of the fitzpatrick modifier.static booleanisFitzpatrickEmoji(String unicode) Check if the given emoji contains a fitzpatrick modifier.static StringremoveFitzpatrick(String unicode) Removes the fitzpatrick modifier from the given emoji.static FitzpatrickReturns the enum constant of this class with the specified name.static Fitzpatrick[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIGHT_SKIN
Represents the light skin tone modifier in the Fitzpatrick scale. -
MEDIUM_LIGHT_SKIN
Represents the medium light skin tone modifier in the Fitzpatrick scale. -
MEDIUM_SKIN
Represents the medium skin tone modifier in the Fitzpatrick scale. -
MEDIUM_DARK_SKIN
Represents the medium dark skin tone modifier in the Fitzpatrick scale. -
DARK_SKIN
Represents the dark skin tone modifier in the Fitzpatrick scale.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getUnicode
Gets the Unicode of the fitzpatrick modifier.- Returns:
- The Unicode of the fitzpatrick modifier.
-
isFitzpatrickEmoji
Check if the given emoji contains a fitzpatrick modifier.- Parameters:
unicode- The Unicode of the emoji.- Returns:
- True if the emoji contains a fitzpatrick modifier.
-
removeFitzpatrick
Removes the fitzpatrick modifier from the given emoji.- Parameters:
unicode- The Unicode of the emoji.- Returns:
- The Unicode of the emoji without the fitzpatrick modifier.
-