Enum Class Fitzpatrick

java.lang.Object
java.lang.Enum<Fitzpatrick>
net.fellbaum.jemoji.Fitzpatrick
All Implemented Interfaces:
Serializable, Comparable<Fitzpatrick>, Constable

public enum Fitzpatrick extends Enum<Fitzpatrick>
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.
  • Enum Constant Details

    • LIGHT_SKIN

      public static final Fitzpatrick LIGHT_SKIN
      Represents the light skin tone modifier in the Fitzpatrick scale.
    • MEDIUM_LIGHT_SKIN

      public static final Fitzpatrick MEDIUM_LIGHT_SKIN
      Represents the medium light skin tone modifier in the Fitzpatrick scale.
    • MEDIUM_SKIN

      public static final Fitzpatrick MEDIUM_SKIN
      Represents the medium skin tone modifier in the Fitzpatrick scale.
    • MEDIUM_DARK_SKIN

      public static final Fitzpatrick MEDIUM_DARK_SKIN
      Represents the medium dark skin tone modifier in the Fitzpatrick scale.
    • DARK_SKIN

      public static final Fitzpatrick DARK_SKIN
      Represents the dark skin tone modifier in the Fitzpatrick scale.
  • Method Details

    • values

      public static Fitzpatrick[] 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

      public static Fitzpatrick valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getUnicode

      public String getUnicode()
      Gets the Unicode of the fitzpatrick modifier.
      Returns:
      The Unicode of the fitzpatrick modifier.
    • isFitzpatrickEmoji

      public static boolean isFitzpatrickEmoji(String unicode)
      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

      public static String removeFitzpatrick(String unicode)
      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.