public static enum AnnoyingMessage.DefaultReplaceType extends java.lang.Enum<AnnoyingMessage.DefaultReplaceType> implements AnnoyingMessage.ReplaceType
AnnoyingMessage.replace(String, Object, ReplaceType)| Enum Constant and Description |
|---|
BOOLEAN
Input is used to turn 'true' or 'false' into the specified value
|
NUMBER
Input is used as the format for
AnnoyingUtility.formatNumber(Number, String) |
TIME
Input is used as the format for
AnnoyingUtility.formatMillis(long, String, boolean) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getDefaultInput()
Gets the default input of the type
|
@NotNull java.util.function.BinaryOperator<java.lang.String> |
getOutputOperator()
Gets the
BinaryOperator to use on the input and value |
static AnnoyingMessage.DefaultReplaceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnnoyingMessage.DefaultReplaceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnoyingMessage.DefaultReplaceType TIME
AnnoyingUtility.formatMillis(long, String, boolean)public static final AnnoyingMessage.DefaultReplaceType NUMBER
AnnoyingUtility.formatNumber(Number, String)public static final AnnoyingMessage.DefaultReplaceType BOOLEAN
public static AnnoyingMessage.DefaultReplaceType[] values()
for (AnnoyingMessage.DefaultReplaceType c : AnnoyingMessage.DefaultReplaceType.values()) System.out.println(c);
public static AnnoyingMessage.DefaultReplaceType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NotNull public @NotNull java.lang.String getDefaultInput()
This is used if the user does not provide a custom input
getDefaultInput in interface AnnoyingMessage.ReplaceType@NotNull public @NotNull java.util.function.BinaryOperator<java.lang.String> getOutputOperator()
BinaryOperator to use on the input and valuegetOutputOperator in interface AnnoyingMessage.ReplaceTypeBinaryOperator to use on the input and value