Package com.vdurmont.emoji
Enum Fitzpatrick
- java.lang.Object
-
- java.lang.Enum<Fitzpatrick>
-
- com.vdurmont.emoji.Fitzpatrick
-
- All Implemented Interfaces:
Serializable,Comparable<Fitzpatrick>
public enum Fitzpatrick extends Enum<Fitzpatrick>
Enum that represents the Fitzpatrick modifiers supported by the emojis.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_1_2Fitzpatrick modifier of type 1/2 (pale white/white)TYPE_3Fitzpatrick modifier of type 3 (cream white)TYPE_4Fitzpatrick modifier of type 4 (moderate brown)TYPE_5Fitzpatrick modifier of type 5 (dark brown)TYPE_6Fitzpatrick modifier of type 6 (black)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FitzpatrickfitzpatrickFromType(String type)static FitzpatrickfitzpatrickFromUnicode(String unicode)static FitzpatrickvalueOf(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.
-
-
-
Enum Constant Detail
-
TYPE_1_2
public static final Fitzpatrick TYPE_1_2
Fitzpatrick modifier of type 1/2 (pale white/white)
-
TYPE_3
public static final Fitzpatrick TYPE_3
Fitzpatrick modifier of type 3 (cream white)
-
TYPE_4
public static final Fitzpatrick TYPE_4
Fitzpatrick modifier of type 4 (moderate brown)
-
TYPE_5
public static final Fitzpatrick TYPE_5
Fitzpatrick modifier of type 5 (dark brown)
-
TYPE_6
public static final Fitzpatrick TYPE_6
Fitzpatrick modifier of type 6 (black)
-
-
Field Detail
-
unicode
public final String unicode
The unicode representation of the Fitzpatrick modifier
-
-
Method Detail
-
values
public static Fitzpatrick[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Fitzpatrick c : Fitzpatrick.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Fitzpatrick valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
fitzpatrickFromUnicode
public static Fitzpatrick fitzpatrickFromUnicode(String unicode)
-
fitzpatrickFromType
public static Fitzpatrick fitzpatrickFromType(String type)
-
-