public class

DefaultRule_zh

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

Class Overview

Usually, there are no plural forms in Chinese. When they are used, plural forms are 1 and n, with 0 treated as plural. Plural forms are not required to be marked, but it is optional so a plural form is provided here. No warning will be issued if it is not included, as it is acceptable to use the same form. Also, note that this does not address the issue of using different symbols for the same digits depending on what is being counted.

Summary

Public Constructors
DefaultRule_zh()
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_zh ()

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