Package com.tagtraum.core.lang
Enum DefiniteArticles
- java.lang.Object
-
- java.lang.Enum<DefiniteArticles>
-
- com.tagtraum.core.lang.DefiniteArticles
-
- All Implemented Interfaces:
Articles
,Serializable
,Comparable<DefiniteArticles>
public enum DefiniteArticles extends Enum<DefiniteArticles> implements Articles
Definite articles in different languages.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Articles
getArticles(Locale locale)
String[]
getArticleStrings()
Locale
getLocale()
boolean
isLengthDiffPossibleNumber(Integer diff)
static DefiniteArticles
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefiniteArticles[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENGLISH
public static final DefiniteArticles ENGLISH
-
GERMAN
public static final DefiniteArticles GERMAN
-
SPANISH
public static final DefiniteArticles SPANISH
-
FRENCH
public static final DefiniteArticles FRENCH
-
ITALIAN
public static final DefiniteArticles ITALIAN
-
PORTUGUESE
public static final DefiniteArticles PORTUGUESE
-
-
Method Detail
-
values
public static DefiniteArticles[] 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 (DefiniteArticles c : DefiniteArticles.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefiniteArticles 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
-
isLengthDiffPossibleNumber
public boolean isLengthDiffPossibleNumber(Integer diff)
- Specified by:
isLengthDiffPossibleNumber
in interfaceArticles
-
getArticleStrings
public String[] getArticleStrings()
- Specified by:
getArticleStrings
in interfaceArticles
-
-