Package de.c1710.filemojicompat
Enum ReplaceStrategy
- java.lang.Object
-
- java.lang.Enum<ReplaceStrategy>
-
- de.c1710.filemojicompat.ReplaceStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<ReplaceStrategy>
public enum ReplaceStrategy extends Enum<ReplaceStrategy>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplaceStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static ReplaceStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final ReplaceStrategy NEVER
Never replace all emojis, but only those that are not supported. Corresponds toandroidx.emoji.text.EmojiCompat.Config#setReplaceAll(boolean)with false. Not recommended.
-
NORMAL
public static final ReplaceStrategy NORMAL
Replaces all emojis if and only if an emoji font file is present; default behavior.
-
ALWAYS
public static final ReplaceStrategy ALWAYS
Replaces all emojis, even if the fallback/integrated font is used. Recommended if you provide a bundled emoji font.
-
-
Method Detail
-
values
public static ReplaceStrategy[] 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 (ReplaceStrategy c : ReplaceStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReplaceStrategy 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
-
-