public class

DefaultRule_da

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

Class Overview

Plural forms for Danish are 1 and n, with 0 treated as plural.

Summary

Public Constructors
DefaultRule_da()
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_da ()

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