GWT 2.7.0

com.google.gwt.i18n.client
Annotation Type Messages.PluralCount


@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public static @interface Messages.PluralCount

Provides multiple plural forms based on a count. The selection of which plural form is performed by a PluralRule implementation. This annotation is applied to a single parameter of a Messages subinterface and indicates that parameter is to be used to choose the proper plural form of the message. The parameter chosen must be of type short or int. Optionally, a class literal referring to a PluralRule implementation can be supplied as the argument if the standard implementation is insufficient.

Example:

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


Optional Element Summary
 java.lang.Class<? extends PluralRule> value
          The PluralRule implementation to use for this message.
 

value

public abstract java.lang.Class<? extends PluralRule> value
The PluralRule implementation to use for this message. If not specified, the GWT-supplied one is used instead, which should cover most use cases.

PluralRule.class is used as a default value here, which will be replaced during code generation with the default implementation.

Default:
com.google.gwt.i18n.client.PluralRule.class

GWT 2.7.0