org.clazzes.util.aop.i18n
Interface PluralRule
- All Known Implementing Classes:
- FallbackPluralRule
public interface PluralRule
A plural rule mapping a number to one of the plural tags
zero
, one
, two
,
few
or many
mentioned in
the plural rule specification of the Unicode Consortium.
mapCardinalToPluralTag
String mapCardinalToPluralTag(double n)
- Parameters:
n
- The cardinal to map to a plural form
- Returns:
zero
, one
, two
,
few
or many
. If null
is
returned, the implicit other
case is assumed,
meaning a general plural form as in most languages.
Copyright © 2012. All Rights Reserved.