Package com.tagtraum.core.lang
Enum IndefiniteArticles
- java.lang.Object
-
- java.lang.Enum<IndefiniteArticles>
-
- com.tagtraum.core.lang.IndefiniteArticles
-
- All Implemented Interfaces:
Articles
,Serializable
,Comparable<IndefiniteArticles>
public enum IndefiniteArticles extends Enum<IndefiniteArticles> implements Articles
Indefinite 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 IndefiniteArticles
valueOf(String name)
Returns the enum constant of this type with the specified name.static IndefiniteArticles[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENGLISH
public static final IndefiniteArticles ENGLISH
-
GERMAN
public static final IndefiniteArticles GERMAN
-
SPANISH
public static final IndefiniteArticles SPANISH
-
FRENCH
public static final IndefiniteArticles FRENCH
-
ITALIAN
public static final IndefiniteArticles ITALIAN
-
PORTUGUESE
public static final IndefiniteArticles PORTUGUESE
-
-
Method Detail
-
values
public static IndefiniteArticles[] 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 (IndefiniteArticles c : IndefiniteArticles.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndefiniteArticles 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
-
-