Package org.openstreetmap.josm.tools
Enum I18n.PluralMode
- java.lang.Object
-
- java.lang.Enum<I18n.PluralMode>
-
- org.openstreetmap.josm.tools.I18n.PluralMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<I18n.PluralMode>
- Enclosing class:
- I18n
private static enum I18n.PluralMode extends java.lang.Enum<I18n.PluralMode>
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:
I18n.pluralEval(long)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MODE_ARMODE_CSSpecial mode for Czech.MODE_CYSpecial mode for Slovak.MODE_GREATERONEPlural = Greater than 1.MODE_LTSpecial mode for Lithuanian.MODE_NONENo plural.MODE_NOTONEPlural = Not 1.MODE_PLSpecial mode for Polish.MODE_RUSpecial mode for Russian.MODE_SKSpecial mode for Welsh.
-
Constructor Summary
Constructors Modifier Constructor Description privatePluralMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static I18n.PluralModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static I18n.PluralMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODE_NOTONE
public static final I18n.PluralMode MODE_NOTONE
Plural = Not 1. This is the default for many languages, including English: 1 day, but 0 days or 2 days.
-
MODE_NONE
public static final I18n.PluralMode MODE_NONE
No plural. Mainly for Asian languages (Indonesian, Chinese, Japanese, ...)
-
MODE_GREATERONE
public static final I18n.PluralMode MODE_GREATERONE
Plural = Greater than 1. For some latin languages (French, Brazilian Portuguese)
-
MODE_AR
public static final I18n.PluralMode MODE_AR
-
MODE_CS
public static final I18n.PluralMode MODE_CS
Special mode for Czech.
-
MODE_PL
public static final I18n.PluralMode MODE_PL
Special mode for Polish.
-
MODE_LT
public static final I18n.PluralMode MODE_LT
Special mode for Lithuanian.
-
MODE_RU
public static final I18n.PluralMode MODE_RU
Special mode for Russian.
-
MODE_CY
public static final I18n.PluralMode MODE_CY
Special mode for Slovak.
-
MODE_SK
public static final I18n.PluralMode MODE_SK
Special mode for Welsh.
-
-
Constructor Detail
-
PluralMode
private PluralMode()
-
-
Method Detail
-
values
public static I18n.PluralMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (I18n.PluralMode c : I18n.PluralMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static I18n.PluralMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-