public class

DefaultRule_fa

extends DefaultRule
java.lang.Object
   ↳ com.google.gwt.i18n.client.impl.plurals.DefaultRule
     ↳ com.google.gwt.i18n.client.impl.plurals.DefaultRule_fa

Class Overview

Plural forms for Farsi (Persian) are 1 and n, with 0 treated as plural. Usually special forms are not needed for singular, so the singular case is marked as optional so if it is missing no warning will be generated.

Summary

Public Constructors
DefaultRule_fa()
Public Methods
PluralForm[] pluralForms()
Returns the list of values which are valid for this rule.
int select(int n)
Returns the plural form appropriate for this count.
[Expand]
Inherited Methods
From class com.google.gwt.i18n.client.impl.plurals.DefaultRule
From class java.lang.Object
From interface com.google.gwt.i18n.client.PluralRule

Public Constructors

public DefaultRule_fa ()

Public Methods

public PluralForm[] pluralForms ()

Returns the list of values which are valid for this rule. The default or "other" plural form must be first in the list with an index of 0 -- this form will be used if no other form applies and is also mapped to the default text for a given message. This method will be executed at compile time and may not contain any references, even indirectly, to JSNI methods.

public int select (int n)

Returns the plural form appropriate for this count. This method will be executed at runtime, so must be translatable.

Parameters
n count of items to choose plural form for
Returns
  • the plural form to use (must be a valid index into the array returned by pluralForms).