Messages.AlternateMessage
instead@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
@Deprecated
public static @interface Messages.PluralText
Example:
@DefaultMessage("You have {0} widgets.")
@PluralText({"one", "You have one widget.")
String example(@PluralCount int count)
Modifier and Type | Required Element and Description |
---|---|
java.lang.String[] |
value
Deprecated.
An array of pairs of strings containing the strings for different plural
forms.
|
public abstract java.lang.String[] value
@DefaultMessage("{0} widgets")
@PluralText({"none", "No widgets", "one", "One widget"})
"other" must not be included in this array as it will map to the
DefaultMessage value.