| Modifier and Type | Field and Description |
|---|---|
static List<Emoji> |
Emojis.EMOJI_LIST |
| Modifier and Type | Method and Description |
|---|---|
Emoji |
IndexedEmoji.getEmoji()
Gets the captured
emoji. |
| Modifier and Type | Method and Description |
|---|---|
static Set<Emoji> |
EmojiManager.extractEmojis(String text)
Extracts all emojis from the given text.
|
static List<Emoji> |
EmojiManager.extractEmojisInOrder(String text)
Extracts all emojis from the given text in the order they appear.
|
static Set<Emoji> |
EmojiManager.getAllEmojis()
Gets all emojis.
|
static Set<Emoji> |
EmojiManager.getAllEmojisByGroup(EmojiGroup group)
Gets all emojis that are part of the given group.
|
static Set<Emoji> |
EmojiManager.getAllEmojisBySubGroup(EmojiSubGroup subgroup)
Gets all emojis that are part of the given subgroup.
|
static List<Emoji> |
EmojiManager.getAllEmojisLengthDescending()
Gets all emojis in descending order by their char length.
|
static Optional<Emoji> |
EmojiManager.getByAlias(String alias)
Gets an emoji for the given alias i.e.
|
static Optional<Emoji> |
EmojiManager.getByDiscordAlias(String alias)
Gets an emoji for the given Discord alias i.e.
|
static Optional<Emoji> |
EmojiManager.getByGithubAlias(String alias)
Gets an emoji for the given GitHub alias i.e.
|
static Optional<Emoji> |
EmojiManager.getBySlackAlias(String alias)
Gets an emoji for the given Slack alias i.e.
|
static Optional<Emoji> |
EmojiManager.getEmoji(String emoji)
Returns the emoji for the given unicode.
|
List<Emoji> |
Emoji.getVariations()
Gets variations of this emoji with different Fitzpatrick or HairStyle modifiers, if there are any.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Emoji.compareTo(Emoji o)
Compares the emojis based on their codepoint length,
and if they are equal, compare them lexicographically based on the emoji.
|
static String |
EmojiManager.removeAllEmojisExcept(String text,
Emoji... emojisToKeep)
Removes all emojis except the given emojis from the given text.
|
static String |
EmojiManager.removeEmojis(String text,
Emoji... emojisToRemove)
Removes the given emojis from the given text.
|
static String |
EmojiManager.replaceEmojis(String text,
Function<Emoji,String> replacementFunction,
Emoji... emojisToReplace)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
String replacementString,
Emoji... emojisToReplace)
Replaces the given emojis with the given replacement string.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
EmojiManager.removeAllEmojisExcept(String text,
Collection<Emoji> emojisToKeep)
Removes all emojis except the given emojis from the given text.
|
static String |
EmojiManager.removeEmojis(String text,
Collection<Emoji> emojisToRemove)
Removes the given emojis from the given text.
|
static String |
EmojiManager.replaceAllEmojis(String text,
Function<Emoji,String> replacementFunction)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
Function<Emoji,String> replacementFunction,
Collection<Emoji> emojisToReplace)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
Function<Emoji,String> replacementFunction,
Collection<Emoji> emojisToReplace)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
Function<Emoji,String> replacementFunction,
Emoji... emojisToReplace)
Replaces all emojis in the text with the given replacement function.
|
static String |
EmojiManager.replaceEmojis(String text,
String replacementString,
Collection<Emoji> emojisToReplace)
Replaces the given emojis with the given replacement string.
|