Package com.vladsch.flexmark.ext.emoji
Enum EmojiShortcutType
- java.lang.Object
-
- java.lang.Enum<EmojiShortcutType>
-
- com.vladsch.flexmark.ext.emoji.EmojiShortcutType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EmojiShortcutType>
public enum EmojiShortcutType extends java.lang.Enum<EmojiShortcutType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_EMOJI_CHEAT_SHEET_PREFERRED
ANY_GITHUB_PREFERRED
EMOJI_CHEAT_SHEET
GITHUB
-
Field Summary
Fields Modifier and Type Field Description boolean
isEmojiCheatSheet
boolean
isGitHub
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPreferred(java.lang.String emojiCheatSheet, java.lang.String gitHub)
static EmojiShortcutType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EmojiShortcutType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMOJI_CHEAT_SHEET
public static final EmojiShortcutType EMOJI_CHEAT_SHEET
-
GITHUB
public static final EmojiShortcutType GITHUB
-
ANY_EMOJI_CHEAT_SHEET_PREFERRED
public static final EmojiShortcutType ANY_EMOJI_CHEAT_SHEET_PREFERRED
-
ANY_GITHUB_PREFERRED
public static final EmojiShortcutType ANY_GITHUB_PREFERRED
-
-
Method Detail
-
values
public static EmojiShortcutType[] 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 (EmojiShortcutType c : EmojiShortcutType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmojiShortcutType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getPreferred
public java.lang.String getPreferred(java.lang.String emojiCheatSheet, java.lang.String gitHub)
-
-