public class Emoji extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
List<String> |
getAliases()
Returns the aliases of the emoji
|
String |
getDescription()
Returns the description of the emoji
|
String |
getHtmlDecimal()
Returns the HTML decimal representation of the emoji
|
String |
getHtmlHexadecimal()
Returns the HTML hexadecimal representation of the emoji
|
String |
getHtmlHexidecimal()
Deprecated.
identical to
getHtmlHexadecimal() for
backwards-compatibility. Use that instead. |
List<String> |
getTags()
Returns the tags of the emoji
|
String |
getUnicode()
Returns the unicode representation of the emoji
|
String |
getUnicode(Fitzpatrick fitzpatrick)
Returns the unicode representation of the emoji associated with the
provided Fitzpatrick modifier.
If the modifier is null, then the result is similar to getUnicode() |
int |
hashCode() |
boolean |
supportsFitzpatrick()
Returns wether the emoji supports the Fitzpatrick modifiers or not
|
String |
toString()
Returns the String representation of the Emoji object.
Example: Emoji {
description='smiling face with open mouth and smiling eyes',
supportsFitzpatrick=false,
aliases=[smile],
tags=[happy, joy, pleased],
unicode='😄',
htmlDec='😄',
htmlHex='😄'
} |
public String getDescription()
public boolean supportsFitzpatrick()
public List<String> getAliases()
public List<String> getTags()
public String getUnicode()
public String getUnicode(Fitzpatrick fitzpatrick)
getUnicode()
fitzpatrick
- the fitzpatrick modifier or nullUnsupportedOperationException
- if the emoji doesn't support the
Fitzpatrick modifierspublic String getHtmlDecimal()
public String getHtmlHexidecimal()
getHtmlHexadecimal()
for
backwards-compatibility. Use that instead.public String getHtmlHexadecimal()
public String toString()
Emoji {
description='smiling face with open mouth and smiling eyes',
supportsFitzpatrick=false,
aliases=[smile],
tags=[happy, joy, pleased],
unicode='😄',
htmlDec='😄',
htmlHex='😄'
}
Copyright © 2017. All rights reserved.