Messages.PluralText (GWT Javadoc)

Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.google.gwt.i18n.client
Annotation Type Messages.PluralText

Deprecated. use `Messages.AlternateMessage` instead

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    @Documented
    @Deprecated
    public static @interface Messages.PluralText

Provides multiple plural forms based on a count. The selection of which plural form to use is based on the value of the argument marked PluralCount, which may also specify an alternate plural rule to use.

Example: ``

       @DefaultMessage("You have {0} widgets.")
       @PluralText({"one", "You have one widget.")
       String example(@PluralCount int count)

Required Element Summary
`java.lang.String[]` | `value` Deprecated. An array of pairs of strings containing the strings for different plural forms.

Element Detail

### value

    public abstract java.lang.String[] value

  Deprecated.
  An array of pairs of strings containing the strings for different plural forms. Each pair is the name of the plural form (as returned by PluralForm.toString) followed by the string for that plural form. An example for a locale that has "none", "one", and "other" plural forms: `

       @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.

  `

Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT