Enum Class Fitzpatrick

java.lang.Object
java.lang.Enum<Fitzpatrick>
com.xxl.tool.emoji.fitzpatrick.Fitzpatrick
All Implemented Interfaces:
Serializable, Comparable<Fitzpatrick>, Constable

public enum Fitzpatrick extends Enum<Fitzpatrick>
Fitzpatrick scale: https://en.wikipedia.org/wiki/Fitzpatrick_scale for Unicode, a numerical classification schema for human skin color.
Author:
xuxueli 2018-07-06 20:15:22
  • Enum Constant Details

    • TYPE_1_2

      public static final Fitzpatrick TYPE_1_2
      [🏻]["🏻"][] Type I (scores 0–6) always burns, never tans (pale white; blond or red hair; blue eyes; freckles). Type II (scores 7–13) usually burns, tans minimally (white; fair; blond or red hair; blue, green, or hazel eyes)
    • TYPE_3

      public static final Fitzpatrick TYPE_3
      [🏼]["🏼"] Type III (scores 14–20) sometimes mild burn, tans uniformly (cream white; fair with any hair or eye color)
    • TYPE_4

      public static final Fitzpatrick TYPE_4
      [🏽]["🏽"] Type IV (scores 21–27) burns minimally, always tans well (moderate brown)
    • TYPE_5

      public static final Fitzpatrick TYPE_5
      [🏾]["🏾"] Type V (scores 28–34) very rarely burns, tans very easily (dark brown)
    • TYPE_6

      public static final Fitzpatrick TYPE_6
      [🏿]["🏿"] Fitzpatrick modifier of type 6 (black)
  • Field Details

    • unicode

      public final String unicode
      Type VI (scores 35–36) Never burns, never tans (deeply pigmented dark brown to darkest brown)
  • 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
    • fitzpatrickFromUnicode

      public static Fitzpatrick fitzpatrickFromUnicode(String unicode)
    • fitzpatrickFromType

      public static Fitzpatrick fitzpatrickFromType(String type)