public final class Emoji extends Object implements Comparable<Emoji>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Emoji o)
Compares the emojis based on their codepoint length,
and if they are equal, compare them lexicographically based on the emoji.
|
boolean |
equals(Object o) |
List<String> |
getAllAliases()
Gets all the aliases for this emoji.
|
String |
getDescription()
Gets the description of this emoji.
|
Optional<String> |
getDescription(EmojiDescriptionLanguage emojiDescriptionLanguage)
Gets the description of this emoji in the specified language.
|
List<String> |
getDiscordAliases()
Gets the Discord aliases for this emoji.
|
String |
getEmoji()
Gets the emoji.
|
Optional<String> |
getEmojiVariation()
Gets the emoji representation of this emoji if the emoji is a standardized emoji that allows variations.
|
List<String> |
getGithubAliases()
Gets the GitHub aliases for this emoji.
|
EmojiGroup |
getGroup()
Gets the group or "category" this emoji belongs to.
|
String |
getHtmlDecimalCode()
Gets the HTML decimal code for this emoji.
|
String |
getHtmlHexadecimalCode()
Gets the HTML hexadecimal code for this emoji.
|
Qualification |
getQualification()
Gets the qualification of this emoji.
|
List<String> |
getSlackAliases()
Gets the Slack aliases for this emoji.
|
EmojiSubGroup |
getSubgroup()
Gets the subgroup of this emoji.
|
Optional<String> |
getTextVariation()
Gets the text representation of this emoji if the emoji is a standardized emoji that allows variations.
|
String |
getUnicode()
Gets the unicode representation of the emoji as a string i.e.
|
String |
getURLEncoded()
Gets the URL encoded emoji.
|
List<Emoji> |
getVariations()
Gets variations of this emoji with different Fitzpatrick or HairStyle modifiers, if there are any.
|
double |
getVersion()
Gets the version this emoji was added to the unicode consortium.
|
boolean |
hasFitzpatrickComponent()
Checks if this emoji has a fitzpatrick modifier.
|
boolean |
hasHairStyleComponent()
Checks if this emoji has a hairstyle modifier.
|
int |
hashCode() |
boolean |
hasVariationSelectors()
Returns whether the emoji has text or emoji variations.
|
String |
toString() |
public String getEmoji()
public String getUnicode()
public String getHtmlDecimalCode()
public String getHtmlHexadecimalCode()
public List<Emoji> getVariations()
public String getURLEncoded()
public List<String> getDiscordAliases()
public List<String> getGithubAliases()
public List<String> getSlackAliases()
public List<String> getAllAliases()
public boolean hasFitzpatrickComponent()
public boolean hasHairStyleComponent()
public double getVersion()
public Qualification getQualification()
public String getDescription()
public Optional<String> getDescription(EmojiDescriptionLanguage emojiDescriptionLanguage)
emojiDescriptionLanguage - The language type the description should be searched for.public EmojiGroup getGroup()
public EmojiSubGroup getSubgroup()
public int compareTo(Emoji o)
compareTo in interface Comparable<Emoji>o - the object to be compared.public boolean hasVariationSelectors()
public Optional<String> getTextVariation()