Package com.xxl.tool.emoji.fitzpatrick
Enum Class Fitzpatrick
- All Implemented Interfaces:
Serializable,Comparable<Fitzpatrick>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription[🏻]["🏻"][] Type I (scores 0–6) always burns, never tans (pale white; blond or red hair; blue eyes; freckles).[🏼]["🏼"] Type III (scores 14–20) sometimes mild burn, tans uniformly (cream white; fair with any hair or eye color)[🏽]["🏽"] Type IV (scores 21–27) burns minimally, always tans well (moderate brown)[🏾]["🏾"] Type V (scores 28–34) very rarely burns, tans very easily (dark brown)[🏿]["🏿"] Fitzpatrick modifier of type 6 (black) -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FitzpatrickfitzpatrickFromType(String type) static FitzpatrickfitzpatrickFromUnicode(String unicode) 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
-
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
[🏼]["🏼"] Type III (scores 14–20) sometimes mild burn, tans uniformly (cream white; fair with any hair or eye color) -
TYPE_4
[🏽]["🏽"] Type IV (scores 21–27) burns minimally, always tans well (moderate brown) -
TYPE_5
[🏾]["🏾"] Type V (scores 28–34) very rarely burns, tans very easily (dark brown) -
TYPE_6
[🏿]["🏿"] Fitzpatrick modifier of type 6 (black)
-
-
Field Details
-
unicode
Type VI (scores 35–36) Never burns, never tans (deeply pigmented dark brown to darkest brown)
-
-
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
-
fitzpatrickFromUnicode
-
fitzpatrickFromType
-