public class EmojiManager extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<Emoji> |
getAll()
Returns all the
Emoji s |
static Collection<String> |
getAllTags()
Returns all the tags in the database
|
static Emoji |
getByUnicode(String unicode)
Returns the
Emoji for a given unicode. |
static Emoji |
getForAlias(String alias)
Returns the
Emoji for a given alias. |
static Set<Emoji> |
getForTag(String tag)
Returns all the
Emoji s for a given tag. |
static EmojiTrie.Matches |
isEmoji(char[] sequence)
Checks if sequence of chars contain an emoji.
|
static boolean |
isEmoji(String string)
Tests if a given String is an emoji.
|
static boolean |
isOnlyEmojis(String string)
Tests if a given String only contains emojis.
|
public static Set<Emoji> getForTag(String tag)
Emoji
s for a given tag.tag
- the tagEmoji
s, null if the tag
is unknownpublic static Emoji getForAlias(String alias)
Emoji
for a given alias.alias
- the aliasEmoji
, null if the alias
is unknownpublic static Emoji getByUnicode(String unicode)
Emoji
for a given unicode.unicode
- the the unicodeEmoji
, null if the
unicode is unknownpublic static Collection<Emoji> getAll()
Emoji
sEmoji
spublic static boolean isEmoji(String string)
string
- the string to testpublic static boolean isOnlyEmojis(String string)
string
- the string to testpublic static EmojiTrie.Matches isEmoji(char[] sequence)
sequence
- Sequence of char that may contain emoji in full or
partially.public static Collection<String> getAllTags()
Copyright © 2019. All rights reserved.