Package com.vdurmont.emoji
Enum EmojiParser.FitzpatrickAction
- java.lang.Object
-
- java.lang.Enum<EmojiParser.FitzpatrickAction>
-
- com.vdurmont.emoji.EmojiParser.FitzpatrickAction
-
- All Implemented Interfaces:
Serializable,Comparable<EmojiParser.FitzpatrickAction>
- Enclosing class:
- EmojiParser
public static enum EmojiParser.FitzpatrickAction extends Enum<EmojiParser.FitzpatrickAction>
Enum used to indicate what should be done when a Fitzpatrick modifier is found.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EmojiParser.FitzpatrickActionvalueOf(String name)Returns the enum constant of this type with the specified name.static EmojiParser.FitzpatrickAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSE
public static final EmojiParser.FitzpatrickAction PARSE
Tries to match the Fitzpatrick modifier with the previous emoji
-
REMOVE
public static final EmojiParser.FitzpatrickAction REMOVE
Removes the Fitzpatrick modifier from the string
-
IGNORE
public static final EmojiParser.FitzpatrickAction IGNORE
Ignores the Fitzpatrick modifier (it will stay in the string)
-
-
Method Detail
-
values
public static EmojiParser.FitzpatrickAction[] 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 (EmojiParser.FitzpatrickAction c : EmojiParser.FitzpatrickAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmojiParser.FitzpatrickAction 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
-
-