Package com.vdurmont.emoji
Enum EmojiCategory
- java.lang.Object
-
- java.lang.Enum<EmojiCategory>
-
- com.vdurmont.emoji.EmojiCategory
-
- All Implemented Interfaces:
Serializable,Comparable<EmojiCategory>
public enum EmojiCategory extends Enum<EmojiCategory>
Enum representation of the category for this emoji
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmojiCategoryfromString(String str)Parses the given string to the respective category constantStringgetDisplayName()The display name of this categorystatic EmojiCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static EmojiCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVITY
public static final EmojiCategory ACTIVITY
-
FLAGS
public static final EmojiCategory FLAGS
-
FOOD
public static final EmojiCategory FOOD
-
NATURE
public static final EmojiCategory NATURE
-
OBJECTS
public static final EmojiCategory OBJECTS
-
PEOPLE
public static final EmojiCategory PEOPLE
-
SYMBOLS
public static final EmojiCategory SYMBOLS
-
TRAVEL
public static final EmojiCategory TRAVEL
-
SMILEYS
public static final EmojiCategory SMILEYS
-
UNKNOWN
public static final EmojiCategory UNKNOWN
-
-
Method Detail
-
values
public static EmojiCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EmojiCategory c : EmojiCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmojiCategory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static EmojiCategory fromString(String str)
Parses the given string to the respective category constant- Parameters:
str- The display string- Returns:
- The category or
UNKNOWN
-
getDisplayName
public String getDisplayName()
The display name of this category- Returns:
- The display name
-
-