| Package | Description |
|---|---|
| net.fellbaum.jemoji |
| Modifier and Type | Method and Description |
|---|---|
static EmojiType |
EmojiType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmojiType[] |
EmojiType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
EmojiManager.containsAnyEmoji(String text,
EnumSet<EmojiType> emojiType)
Checks if the given text contains emojis.
|
static Set<Emoji> |
EmojiManager.extractEmojis(String text,
EnumSet<EmojiType> emojiType)
Extracts all emojis from the given text.
|
static List<Emoji> |
EmojiManager.extractEmojisInOrder(String text,
EnumSet<EmojiType> emojiType)
Extracts all emojis from the given text in the order they appear.
|
static List<IndexedEmoji> |
EmojiManager.extractEmojisInOrderWithIndex(String text,
EnumSet<EmojiType> emojiType)
Extracts all emojis from the given text in the order they appear.
|
static String |
EmojiManager.removeAllEmojis(String text,
EnumSet<EmojiType> emojiType)
Removes all emojis from the given text.
|
static String |
EmojiManager.removeAllEmojisExcept(String text,
Collection<Emoji> emojisToKeep,
EnumSet<EmojiType> emojiType)
Removes all emojis except the given emojis from the given text.
|
static String |
EmojiManager.removeEmojis(String text,
Collection<Emoji> emojisToRemove,
EnumSet<EmojiType> emojiType)
Removes the given emojis from the given text.
|
static String |
EmojiManager.replaceAllEmojis(String text,
Function<Emoji,String> replacementFunction,
EnumSet<EmojiType> emojiType)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceAllEmojis(String text,
String replacementString,
EnumSet<EmojiType> emojiType)
Replaces all emojis in the text with the given replacement string.
|
static String |
EmojiManager.replaceEmojis(String text,
Function<Emoji,String> replacementFunction,
Collection<Emoji> emojisToReplace,
EnumSet<EmojiType> emojiType)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
String replacementString,
Collection<Emoji> emojisToReplace,
EnumSet<EmojiType> emojiType)
Replaces the given emojis with the given replacement string.
|