Package org.openstreetmap.josm.tools
Enum Class I18n.PluralMode
- All Implemented Interfaces:
Serializable,Comparable<I18n.PluralMode>,Constable
- Enclosing class:
- I18n
Enumeration of possible plural modes. It allows us to identify and implement logical conditions of
plural forms defined on Launchpad.
See CLDR
for another complete list.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic I18n.PluralModeReturns the enum constant of this class with the specified name.static I18n.PluralMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MODE_NOTONE
Plural = Not 1. This is the default for many languages, including English: 1 day, but 0 days or 2 days. -
MODE_NONE
No plural. Mainly for Asian languages (Indonesian, Chinese, Japanese, ...) -
MODE_GREATERONE
Plural = Greater than 1. For some latin languages (French, Brazilian Portuguese) -
MODE_AR
-
MODE_CS
Special mode for Czech. -
MODE_PL
Special mode for Polish. -
MODE_LT
Special mode for Lithuanian. -
MODE_LV
Special mode for Latvian. -
MODE_RU
Special mode for Russian. -
MODE_CY
Special mode for Slovak. -
MODE_SK
Special mode for Welsh.
-
-
Constructor Details
-
PluralMode
private PluralMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-