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:
Serializable
,Comparable<I18n.PluralMode>
- Enclosing class:
- I18n
private static enum I18n.PluralMode extends 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_AR
MODE_CS
Special mode for Czech.MODE_GREATERONE
Plural = Greater than 1.MODE_LT
Special mode for Lithuanian.MODE_NONE
No plural.MODE_NOTONE
Plural = Not 1.MODE_PL
Special mode for Polish.MODE_RU
Special mode for Russian.MODE_SK
Special mode for Slovak.
-
Constructor Summary
Constructors Modifier Constructor Description private
PluralMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static I18n.PluralMode
valueOf(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_SK
public static final I18n.PluralMode MODE_SK
Special mode for Slovak.
-
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-